I know a bit about routing but I dunno how to create a custom route where it would for example swap the dots with a chosen "safe" symbol. So if anyone has got any material that explains on how to do just that I'd be very thankful. I know how to set up /ip_logs/ip /ip_logs/user but no idea how to swap anything in a symbol that makes that route.
For now I'm gonna go with the default show action and redesign it based upon if a user id or ip is passed in the params and post back how that works. I'd like to take a moment to thank everyone for their invaluable input not just this topic but elsewhere as well. I'm learning new stuff with literally every post :) Maybe one day I'll be actually good at it.. On Mar 4, 11:06 pm, Matt Jones <[email protected]> wrote: > On Mar 4, 2012, at 8:55 AM, Scorpio wrote: > > > as far as the index page goes I've tried > > > <index-page> > > > <content-header:/> > > <content-body:> > > <collection:> > > <view:resource_url/> > > </collection:> > > </content-body:> > > > </index-page> > > > Regardless what i put in the vew tag it still shows Ip log 1, Ip log 2 > > etc > > Have you tried this without the <content-body:> wrapper? Typically, you only > want to use nested parameters for things that are actual parameters of the > tag - in this case, "content-body" is a section tag that doesn't take any > parameters. > > > when i try to link to /ip_logs/ip /ip_logs/user I get no route matches > > error I'm guessing I'm missing something but /ip_logs/127.0.0.1 (the > > ip value for both test entries) also shows that error and not a blank > > page or edit me here page > > You'll definitely want to set up some custom routes - the dots are likely to > confuse Rails, as they're typically used as format separators (think > /some_models/1.json). > > --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
