User Profile

Collapse

Profile Sidebar

Collapse
Peter Moh
Peter Moh
Last Activity: Apr 29 '11, 02:19 PM
Joined: Jul 17 '07
Location: New York, NY, USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • wrong number of arguments (0 for 1) ArgumentError in XXXXController#create

    I get wrong number of arguments (0 for 1) error.
    The create action works with regular validates but authenticate/salt processing.

    Please point out what does the message mean?

    The create action works fine without calling and authenticate(us er_id, password).
    Code:
    require 'digest/sha1'
    
    class Ctkuser < ActiveRecord::Base
    
    validates_presence_of :user_id
    validates_uniqueness_of
    ...
    See more | Go to post

  • How to send params from user input to find_all in controller?

    I use form_remote_tag and text_field_tag to send select scope to controller.
    It returns a long string instead of a data set (collection).
    Please teach me how to use input field to control dynamic finder and return a "data set' object. So the returning object can be display in table with gird, paging....

    Thanks.


    Code:
    Code:
    class ContractorController < ApplicationController
    ...
    See more | Go to post

  • I chage "form11.cl1 " to "cl1". It returns null.
    See more | Go to post

    Leave a comment:


  • document.getElementById can not find the element

    Try to use 'document.getEl ementById(("for m11.cl1")' to get commandLink 'cl1'
    Get null return.
    How can I make getElementById to find 'cl1'?

    //---source code:---

    <f:view>
    <afh:html binding="#{back ing_ViewMonthly .html11}" id="html11">
    <afh:head title="Title 1" binding="#{back ing_ViewMonthly .head11}"
    id="head11">...
    See more | Go to post
No activity results to display
Show More
Working...