On 16 March 2012 07:18, hanish jadala <[email protected]> wrote:
> while i am using in_place_editor_field  i am getting this error
>
> Called id for nil, which would mistakenly be 4 -- if you really wanted the
> id of nil, use object_id

Read the error and have a look at the line pointed to.  Something there is nil.
Look in development.log and check that the parameters passed are correct.
Have a look at the Rails Guide on debugging to see how to debug your
code to find the problem.

Colin


>
>
> On Fri, Mar 16, 2012 at 12:16 PM, honey ruby <[email protected]>
> wrote:
>>
>> hi everyone i wanna use in_place_editor_field i've installed the Plug-
>> in and when i'm trying to use it.
>> <%= in_place_editor_field :subject, :credit_hour %> i have added this
>> line in view part and  in_place_edit_for :subject, :credit_hour line
>> in controller. Here :subject is model name and :credit_hour is column
>> in subject model. i have values 0 so i am unable to view that value to
>> update it.
>>
>>
>> is there anything more i have to do  please help me
>>
>> Thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.



-- 
gplus.to/clanlaw

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to