Hi there,
I've done this before many times. But for some reason, my controller
isn't rendering my RJS file. Here's the setup:

In the View:
- a call to remote_function:

[code]
<select name="state" onchange="<%=
remote_function(:url=>{:action=>:cities})%>">
[/code]

In the Controller:
- get the data that I need:

[code]
def cities
  @cities = Store.find_by_sql("select DISTINCT city from stores where
state='#{params[:state]}'")
end
[/code]

I have a file called cities.rjs. However, when I run it, I get the
following error:

[code]
ActionView::MissingTemplate (Missing template stores/cities.erb in view
path app/views:vendor/plugins/easy-fckeditor/app/views):
[/code]

I've tried creating a file called cities.erb, but that doesn't work
either. The path is correct: I have the /views/stores folder there and
the file is where it's supposedly looking. I can't fathom what the issue
is here. Any help?

Thanks,
Aaron.
-- 
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