Displaying 2 results from an estimated 2 matches for "nomadsper".
2008 Jul 08
1
Problems with form_remote_tag
Hi,
I am trying to use form_remote_tag to update a record and then update
the section of the page where id=''opertion_panel''. There is a javascript
validation that validates the input before the record is being updated.
This validation works and the record was successfully updated. The
problem is after the record is being updated, it didn''t update
operation_panel.
2008 Jul 07
3
How to get a users screen name into a hidden field in a PostsController action?
Instead of the user entering a name, I want to pass their screen name
along with supplied :title and :content fields. here is what I''ve
got..
f.hidden_field :author, user.screen_name
here is the create method from Posts controller:
def create
@title = "Gravity"
@user = User.find(params[:id]) # this does not work, and I don''t
know why
if request.post?