skip to main | skip to sidebar

Ruby and Rails

Sunday, August 30, 2009

hidden field

<%= f.hidden_field :user_id, :value => current_user.id %>

or if you don't have f

<%= hidden_field_tag(:filter_only, :value => 1) %>
Posted by Kent Bergstrom at 4:03 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2011 (1)
    • ►  March (1)
  • ►  2010 (3)
    • ►  November (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2009 (18)
    • ►  September (7)
    • ▼  August (11)
      • hidden field
      • Default value on select tag
      • Rails Validation
      • What is the 'h' for in rails erb?
      • Partials Naming Conventions and Best Practices
      • Formatting Issues
      • Migrations after the fact ...
      • Scaffolding
      • Finding Files
      • restful_authentication plugin
      • Finding that piece of code
  • ►  2008 (4)
    • ►  August (4)

About Me

Kent Bergstrom
View my complete profile