Displaying 2 results from an estimated 2 matches for "album_list".
2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb
def album_list(genre)
albums = genre.albums.sort
list = albums.collect { |album| link = link_to album.title,
:controller =>
''albums'',
:action => ''show'',...
2007 May 09
1
form.select wrong number of arguments (0 for 1)
...ing Instant Rails and this is a new application to this
install.
Here is the error:
ArgumentError in Admin#index
Showing app/views/admin/index.rhtml where line #3 raised:
wrong number of arguments (0 for 1)
Extracted source (around line #3):
1: <form method="POST">
2: <%= @album_list = Album.find(:all, :order => "album_name")
3: form.select(:album_name, @album_list)
4: %>
5: </form>
Any help would be greatly appreciated
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you...