On Thu, Apr 7, 2011 at 11:12 AM, Kelly Pfaff <li...@ruby-forum.com> wrote:

> I'm having a problem passing along all parameters to post a comment:
>
>
> <%= form_tag :action => "comment", :id => @zwemmer, :created_on =>
> Time.now, :created_by => "number1" %>
>  <%= text_area "comment", "body" ,:size =>"25x10" %><br/>
>  <%= submit_tag "Merk op!" %>
> </form>
>
> In the console i get:
>
>  ←[4;36;1mComment Create (16.0ms)←[0m   ←[0;1mINSERT INTO "comments"
> ("created_
> on", "updated_at", "body", "zwemmer_id", "created_by", "created_at")
> VALUES('201
> 1-04-07 18:06:56', '2011-04-07 18:06:56', 'testcontent', 124, NULL,
> '2011-04-07
> 18:06:56')
>
> So to created_by it's passing NULL instead of "number1". How is this
> possible?
>
>
Can you post your controller code that the form is submitting to? I'm
curious to see how you are processing the values being sent over.

B.

-- 
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-talk@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