user852974
user852974

Reputation: 2282

link_to another page in ruby-on-rails

I just want to create a link to the page app/views/layouts/world.html.erb. How can I do this? (Using link_to or something similar) Thanks.

Upvotes: 1

Views: 3079

Answers (1)

Matt Briggs
Matt Briggs

Reputation: 42258

That is a layout, which means you embed pages in it, even if it wasn't rails doesn't have a concept of linking to "pages", you link to "resources".

I understand that is a confusing answer, and would recommend going through something like this http://ruby.railstutorial.org/ruby-on-rails-tutorial-book

Upvotes: 3

Related Questions