Displaying 2 results from an estimated 2 matches for "name_with_initial".
2011 Aug 11
17
f.collection_select: what are the parameters?
The rails docs are so horrible on the collection_select method.  They
need to show a *complete* form, and show two examples: one that calls
f.collection_select(), and another that calls collection_select(), and
explain the differences.
Given this line:
f.collection_select :topic, Topic.all, :id, :category
What the !@#$!@#$ is :topic?
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received
2010 Feb 10
7
undefined method join
...#view
  form_for @student do |f| f.collection_select(:student_fail_attribute, 
StudentFailState.all, :id, :key) end
I don''t understand why the error. This is the example that rails
documentation gives, which looks very close to mine:
collection_select(:post, :author_id, Author.all, :id, :name_with_initial,
{:prompt => true})
-- 
View this message in context: http://old.nabble.com/undefined-method-join-tp27535930p27535930.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal...