search for: message_user_id

Displaying 1 result from an estimated 1 matches for "message_user_id".

2007 Jan 21
1
Form question
...es end Then I also have a form which will let me specify which User a Message belongs to. <p><label for="message_content">Content</label><br/> <%= text_field ''message'', ''content'' %></p> <p> <label for="message_user_id">User</label><br/> <%= select("user", "id", User.find(:all).collect {|u| [u.username, u.id] }) %> </p> And here''s the create method def create @message = Message.new(params[:message]) if @message.save @message.user = User....