Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Adri Johari
Adri Johari
17,075 Points

what is different page_path(page) and new_page_path for link_to rails

what is different page_path(page) and new_page_path for link_to rails

1 Answer

Harsh Mankad
Harsh Mankad
4,650 Points

I'm not sure I understand the question but the link_to {page.id} got substituted with page because in config --> routes.rb file we put the as: 'page'.

Not sure this helps but let me know.

Best!