I think what i wrote there is rubbish, just ignore it and if you have a 
better method pls put me through, thanks
Colin Law wrote in post #1055788:
> On 10 April 2012 10:31, deee el <[email protected]> wrote:
>>   format.html
>>  end
>> end
>>
>> def create
>>  @post = current_user.posts.create(:message => params[:message])
>>  @user.id = current_user.username
>
> I don't understand that, what is @user and why are you trying to set
> its id to the name of the current user?
>
> Colin

-- 
Posted via http://www.ruby-forum.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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to