search for: goalstatus

Displaying 1 result from an estimated 1 matches for "goalstatus".

Did you mean: dialstatus
2006 Apr 11
1
how to do a simple update on the server from a change of a select box?
...to is not sent. I hope I am missing something simple. The controller action is: def update_status goal = Goal.find(params[:id]) goal.status = params[:goal][:status] goal.save end The relevant form part looks like this <%= select_tag(''goal[status]'', options_for_select(GoalStatus::STATES, goal.status), :onfiltered=> remote_function(:url => :update_status, :id => goal })) %> Asked another way, how can I send the value of the form element associated with the remote_function? Is there a better way to do this? Thanks -------------- next part --------...