Radhames Brito wrote:
> If you need to now how to do this step by step, just have to post a bit
> more
> of your view code.
>
>
>
> and the actions you want to call is can be access by
> task_dynamic_form_path
Apologies Radhames, I did include it in my first post, but I guess i
could have been more clear!
Here is my view code. What it basically is supposed to do is run a
little bit of js that replaces some of html when the first drop down box
is changed.
<%= form_for(@task, :remote=> true, :as=>:task, :url => tasks_path )
do |f| -%>
<p>
<%= f.label :title, 'New task:' %>
<%= f.text_field :title %>
<%= f.hidden_field :assigned_to_id, :value => current_user.id %>
<label for="user_selected_app">Application:</label>
<%= select 'facet', 'value',Facets.application_list(["GBOSS",
"J_GMISEMEATC" ] ),{}, :onchange => remote_function(:url => {:action =>
'dynamic_form'} ) %>
<label for="user_selected_issuetype">Issue Type:</label><strong id =
"user_selected_issuetype">
<%= select 'task', 'issue_type',
options_for_select(@task.sti_issue_type_list(User.current_user.group.id),
:selected => session[:default_task_issue_type]), {}, :onchange =>
"$('task_submit').simulate('click')" %>
</strong>
<%= f.submit 'Create' %>
<% end -%>
</p>
--
Posted via http://www.ruby-forum.com/.
--
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.