On Feb 10, 6:40 pm, JohnMerlino <stoici...@aol.com> wrote:
> Hey all,
>
> I get an undefined method `join' for #<String  NoMethodError.
>

One what line does this error occur? Also if you're going to post
code, you might as well make it a complete piece of code - what you've
posted there isn't syntactically correct ruby.

Fred
> student.rb
>   has_one :student_fail
>   attr_accessor :student_fail_attribute
>
>   #controller
>   def student_fail
>   @student = @student.find params[:id]
>
>   def update_student_fail
>   �...@student.build_student_fail params[:student][:student_fail_attribute]
>    if @student.save
>
>   #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: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to