Ruby on Rails Friday, December 19, 2014

Colin Law wrote in post #1164989:
> On 19 December 2014 at 17:17, David Williams <lists@ruby-forum.com>
> wrote:
>>>
>> during signup for normal users. They have to put both their :username
>> and :email in. How could I show just /:username when a person routes to
>> their own show page?
>
> I think I must be misunderstanding the question, you can show as much
> or as little as you like, just put what you want in the view, and
> leave out what you do not want.
>
> Colin

No, I'm beyond the view issue. I was just trying to fix the route as it
displays the users [:id] instead of the [:username]. For instance
twitter.com/username on show page for user. Thanks for your help so far.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6a88e20172411c9ef29b39c8388bff85%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment