Craig White wrote:
> On Thu, 2010-07-01 at 21:23 +0200, Jack Fall wrote:
>> 
>>       else
>>         format.html { render :action => "new" }
>>         format.xml  { render :xml => @post.errors, :status =>
>> :unprocessable_entity }
>>       end
>>     end
>>   end
>> 
> ----
> def create
>   @post = Post.new(params[:postform])
>   @post.user_id = session[:user_id] #assuming you've already
>                                     #got this worked out
>   if @post.save
>     put your stuff here
>   end
> end
> 
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.

Craig Walker if I knew you I would kiss you (hypothetical), I never knew 
it would be so simple however thank you very much.
Robert Walker to be truthful I have not got the fogest what I wrote :S, 
I looked back over it and thought "yer this is not going to work in a 
million years".
-- 
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