27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating tags<br />

This creates the #ticket #tags element that your feature is looking for, and will render<br />

the soon-to-be-created app/views/tags/_tag.html.erb partial for every element in<br />

the also-soon-to-be-created tags association on the @ticket object. Which of these<br />

two steps do you take next? If you run your scenario again, you see that it cannot find<br />

the tags method for a Ticket object:<br />

undefined method `tags' for #

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!