Displaying 2 results from an estimated 2 matches for "film_titl".
Did you mean:
film_title
2006 Mar 29
0
routes and caching
Hi there,
I have the following route in my routes file:
# - all film sub-pages (defaulting to index.html)
map.connect ''films/:film_title/:page'',
:controller => ''films'',
:action => ''show'',
:page => ''index.html''
which will pick up URLs like this:
/films/filmname/
/films/filmname/index.html
/films/filmname...
2006 Apr 04
3
newbie - HABTM problems writing to Join Table in SQL
...y :directors
end
--------application_helper.rb---------
module ApplicationHelper
def director_dropdown
select(:director, :id, Director.find(:all, :order => "name").map {|d|
[d.name, d.director_id] })
end
end
--------films/form.rhtml-----------
<p><label for="film_title">Title</label><br/>
<%= text_field ''film'', ''title'' %><br/>
Director<br/>
<%= director_dropdown %>
</p>
<p><label for="film_release_date">Release date</label><br/>
<%= date_s...