search for: some_view

Displaying 3 results from an estimated 3 matches for "some_view".

2006 Aug 01
0
calling controller method for .rhtml file inside directory
Im trying to call a method for an rhtml file that inside a directory. For example, I have views/some_view/directory_in_view/test.rhtml file. How do I access this in the controller, I cant have a method called: def some_view/directory_in_view end Do I just have to do a redirect? -- Posted via http://www.ruby-forum.com/.
2008 May 10
0
can javascript handle 422 response
...format.html { redirect_to(@response) } format.xml { head :ok } format.js { head :ok } else format.html { render :action => "edit" } format.xml { render :xml => @response.errors, :status => :unprocessable_entity } format.js { head :unprocessable_entity } end end some_view.html.erb: ............................................................ <%= check_box_tag ''response[status]'', "1" , response.status == "done", :onclick => toggle_value(response) %> <%= image_tag ''spinner.gif'', :id => "spinne...
2008 Jul 20
2
Filtering results through URL (e.g. new?forum_id=3)
Is there a special code you have to place in the routes so filtering results through the URL works? For example, Ruby Forum does it with: http://www.ruby-forum.com/topic/new?forum_id=3 http://www.ruby-forum.com/topic/new?forum_id=5 http://www.ruby-forum.com/topic/new?forum_id=7 etc. Any ideas? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You