Hi again,

I've also been trying to solve this using observe_field, and that 
'almost' seems to work. Here's the code:

<%=select_tag "cat_selected", options_for_select(@cats_for_mt)%>
<%=observe_field 'cat_selected',
      :url => {:action => :viewflokkur},
      :with => 'cat',
      :method => :get %>

When I change the value, development.log shows this.


Processing CategoriesController#viewflokkur (for 127.0.0.1 at 2010-06-12 
12:04:33) [GET]
  Parameters: {"cat"=>"Taugasjúkraþjálfun", 
"authenticity_token"=>"B2u5ULNr7IJ/ta0+hiAMBjmjEtTtc/yMAQQvSxFn2d0="}
Rendering template within layouts/main
Rendering categories/viewflokkur
Completed in 21ms (View: 18, DB: 0) | 200 OK 
[http://localhost/categories/viewflokkur?cat=Taugasj%C3%BAkra%C3%BEj%C3%A1lfun&authenticity_token=B2u5ULNr7IJ%2Fta0%2BhiAMBjmjEtTtc%2FyMAQQvSxFn2d0%3D]


So I should be redirected to 'viewflokkur', but nothing happens in my 
browser. Is there something else I need to do?

BR,
Sindri
-- 
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.

Reply via email to