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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 On Fri, Mar 16, 2012 at 12:16 PM, honey ruby <emailtohoneyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 16 March 2012 07:18, hanish jadala <emailtohoneyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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_idRead 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 <emailtohoneyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You look to have an object issue with ":subject" <%= in_place_editor_field :subject, :credit_hour %> Have you tried this in your controller @subject = Subject.new then in your view <%= in_place_editor_field @subject, :credit_hour %> Also this is deprecated in Rails 2.0: http://apidock.com/rails/ActionView/Helpers/JavaScriptMacrosHelper/in_place_editor_field DEPRECATION WARNING: This method will become a separate plugin when Rails 2.0 ships. I suggest the best_in_place plugin in place of in_place_editor. https://github.com/bernat/best_in_place On Mar 16, 12:46 am, honey ruby <emailtohoneyr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
yeah i tried it i got it but the value is not saving it is redirecting my home page. On Fri, Mar 16, 2012 at 11:20 PM, bluetwin <brandon.sislow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You look to have an object issue with ":subject" > <%= in_place_editor_field :subject, :credit_hour %> > > Have you tried this in your controller > @subject = Subject.new > then in your view > <%= in_place_editor_field @subject, :credit_hour %> > > Also this is deprecated in Rails 2.0: > > http://apidock.com/rails/ActionView/Helpers/JavaScriptMacrosHelper/in_place_editor_field > DEPRECATION WARNING: This method will become a separate plugin when > Rails 2.0 ships. > > I suggest the best_in_place plugin in place of in_place_editor. > https://github.com/bernat/best_in_place > > > On Mar 16, 12:46 am, honey ruby <emailtohoneyr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
does best_in_place will work in rails 2.3.8 On Sat, Mar 17, 2012 at 11:23 AM, hanish jadala <emailtohoneyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> yeah i tried it i got it but the value is not saving it is redirecting my > home page. > > > On Fri, Mar 16, 2012 at 11:20 PM, bluetwin <brandon.sislow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> You look to have an object issue with ":subject" >> <%= in_place_editor_field :subject, :credit_hour %> >> >> Have you tried this in your controller >> @subject = Subject.new >> then in your view >> <%= in_place_editor_field @subject, :credit_hour %> >> >> Also this is deprecated in Rails 2.0: >> >> http://apidock.com/rails/ActionView/Helpers/JavaScriptMacrosHelper/in_place_editor_field >> DEPRECATION WARNING: This method will become a separate plugin when >> Rails 2.0 ships. >> >> I suggest the best_in_place plugin in place of in_place_editor. >> https://github.com/bernat/best_in_place >> >> >> On Mar 16, 12:46 am, honey ruby <emailtohoneyr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.