firstdraft / appdev_template

A Rails template for generating homework projects
0 stars 1 forks source link

Proposal: default root route #143

Open raghubetina opened 4 years ago

raghubetina commented 4 years ago

Proposal:

What about adding a default root route to all projects?

get("/", { :controller => "rails/info", :action => "routes" })

Thoughts @pmckernin @jelaniwoods ?

pmckernin commented 4 years ago

What is the reasoning?

raghubetina commented 4 years ago

@pmckernin I figured you might not be familiar with that feature of Rails, so the main reason for this issue is to give you a chance to investigate if not.

Try to come up with what you think my reasoning might be.

jelaniwoods commented 4 years ago

@raghubetina I like this idea. I think this would be a good addition with the exception of maybe the first HTML projects that we do before any routing stuff. For those, I think the "Yay! You're on Rails" page is better since it looks less intimidating.

raghubetina commented 4 years ago

@jelaniwoods Good point. Perhaps template.rb should include an ask to find out whether to use this root route or not.