Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on How do I add a new route (URL)?

Post

How do I add a new route (URL)? Question

+1
−0

I was thinking about taking a try at an issue that would add a new sub-page to the user profile. I understand that as part of this I need to add a "route" for the new URL and somehow wire that up to the view that I will define.

I'm new to that part of Ruby; so far I have only modified existing views, not created new ones. How does that work?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

This answer may help as a start (5 comments)
This answer may help as a start
trichoplax‭ wrote 2 months ago

I struggled through understanding how the routes work myself a few months ago, so I wrote a self answer for next time I need to work on them.

It covers the things I got confused by, and might be a way to get started and then narrow down any more specific questions.

trichoplax‭ wrote 2 months ago

I've now added an answer which has some overlap but is more specific to the user profile page.

Monica Cellio‭ wrote 2 months ago

Thanks for the link! From the title I didn't recognize that as being about routes, so I didn't dig deeper. Oops.

trichoplax‭ wrote 2 months ago

The routes were only in the answer, not the question, because I phrased the question in terms of my initial misunderstanding which didn't know that routes were the answer. I guess that's not ideal for browsing through questions, but at least this one exists now which is explicitly about routes.

Monica Cellio‭ wrote 2 months ago

Right -- questions start from the question. I think the current state is fine. Thanks for making the connection for me and future readers.