Sijo Kg wrote:> Hi
>
> Have a look at observe_field
>
>
http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001654
>
>
>
> Sijo
Hi, i tried like this,
View page:
<%= collection_select(:question,:subject_id ,Subject.all, :id, :name )
%>
<%= observe_field ''question_subject_id'',
:url => {:controller=>''question'',:action =>
''subject_action''}, :with
=> ''subject_id'' %>
<div id="div1" >
</div>
Controller:
i tried checking if it comes to the controller.. the controller method
is not even called. Please help me to find the mistake
def subject_action
render :update do |page|
page.alert "hello from update items call!!"
end
end
--
Posted via http://www.ruby-forum.com/.