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 <[email protected]> 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 <[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.

Reply via email to