I have the extra route above the default ones, but is there a way to
generate “/posts/1.html” using <%= link_to ‘Show’, post %> or a
simpler method than what I have above?
Right now /posts/1.html works if I navigate directly to it, but the
links on the views/posts/index.html.erb are still rendering as /posts/
1
The reason I want the extension is to make sure search engines will
see /posts/1.html as a document in the first level directory as
opposed to /posts/1 as a second deeper level directory.
On Jul 14, 4:52 am, Matthew R. Jacobs <rails-mailing-l…@andreas-
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.