Colin Law wrote in post #965787: > On 2 December 2010 18:31, Michael Baldock <[email protected]> wrote: >> my view code (index) looks like this >> >> >> Should I be using a different function to search_url? >> >> Or am I missing something very basic about how websites receive >> commands, does every function I execute have to be run from a url >> address? > > You got it. All the browser can do is access a url on the server. So > in a rails app everything is done via actions in a controller. [...]
Just to clarify this point for the OP, let me state explicitly that this is just the way the Web works. The browser only sends HTTP requests to the server (for specific URLs) and processes the results. It has no way of knowing (nor should it care) anything about the nature of the server-side application. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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.

