Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Rolling with Ruby on Rails Revisited, Part 2
Subject:   recipe_controller.rb time changes not working.
Date:   2008-01-11 12:33:12
From:   VillageIdiot
Greetings,


I am completely new to Ruby and Rails.


I have had a few problems getting through the tutorial so far (rolling back from InstantRails 2.0 to 1.7 solved most of my issues).


Currently I am on page two where we are adding the line @recipe.date = Time.now.


Even after making thos changes and restarting mongrel, I cannot get the date option to go away.


The category selection option changes work flawlessly, but I can't make the date selection go away as described in your article. I made the edits and that did not work, so I also tried copying and pasting the entire file as it was posted below for someone else's end statement issue.


This newbie would greatly appreciate some help!

Full Threads Oldest First

Showing messages 1 through 6 of 6.

  • recipe_controller.rb time changes not working.
    2008-01-28 00:08:07  panot [View]

    delete this part in _form.rhtml of recipe:

    <label for="recipe_date">Date</label><br/>
    <%= datetime_select 'recipe', 'date' %>

  • recipe_controller.rb time changes not working.
    2008-01-28 00:06:43  panot [View]

    delete this part in _form.rhtml of recipe:

    <label for="recipe_date">Date</label><br/>
    <%= datetime_select 'recipe', 'date' %>

  • recipe_controller.rb time changes not working.
    2008-01-28 00:04:08  panot [View]

    delete this part in _form.rhtml of recipe:

    <label for="recipe_date">Date</label><br/>
    <%= datetime_select 'recipe', 'date' %>

  • recipe_controller.rb time changes not working.
    2008-01-11 15:55:00  VillageIdiot [View]

    Ok I found my issue, I forgot to remove the labeling section for _form.rhtml after adding the section for category.
  • recipe_controller.rb time changes not working.
    2008-01-11 12:47:42  VillageIdiot [View]

    Double posted >.<

    Unfortunately I don't see a means of deleting my post, my apologies for the double post.
  • recipe_controller.rb time changes not working.
    2008-01-11 12:33:53  VillageIdiot [View]

    My apologies for the double posting there.