SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: text_field

  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    text_field

    How about setting the value of a text_field heler from the controller?

    ~TRS

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    # controller:
    @your_model.the_attribute = the_value
    
    # view:
    text_field 'your_model', 'the_attribute'


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •