Marnen Laibow-Koser wrote:
> Aldric Giacomoni wrote:
>> Marnen Laibow-Koser wrote:
>> 
>> So when you go to "index", Rails calls the Ruby method "index" in the 
>> appropriate controller, doesn't it?
> 
> Assuming standard routing, yes.
> 
> This does not make your original question any more comprehensible. :)
> 

When I go to the URI : http://localhost:3000/Ultrasounds/index
I query a database for a list of ultrasounds and display that list under 
a button called "Fix ultrasounds".
When I click that button, I want it to run the attached method, which it 
does, and I want that list to be re-queried and re-displayed.

So, should I:
1) have this list displayed in a partial
2) the view set up with a div
3) in the "index" method, call the method which does the query, then 
renders the partial in that div
4) when the button is clicked, re-call the method which does the query 
and renders the partial in that div

?
-- 
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