2010/1/15 Aldric Giacomoni <[email protected]>:
> Marnen Laibow-Koser wrote:
>> Aldric Giacomoni wrote:
>>> Is it possible to render a partial with an action attached to it, just
>>> like the regular views? Or should I just call the action which renders
>>> the partial?
>>
>> Uh...what?  How does any view, partial or not, have an action attached?
>> What in the world do you mean?
>>
>
> http://localhost:3000/Users/index
>
> That's a view, right?

No, it is a URL

> In the controller, there's "def index [...] end", right? That's an
> action, right?
>
> So when you go to "index", Rails calls the Ruby method "index" in the
> appropriate controller, doesn't it?

You have it the wrong way round, clicking on the URI causes the index
action to be performed, then that causes a view to be rendered.

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