Ruby on Rails Wednesday, August 31, 2011

Thanks so far guys. Will try this. Currently I'm using a very raw
string concatenation which just appends the page - and the id.

> forum_topic_path(@topic.forum, @topic) + "?page=" + find_topic_page(@post) + "#post-" + @post.id
it is. So well, I'd be glad if I could replace it with the nice and
shiny version.. But how to append the # anchor thingy then, is there
some option for that?

Thanks, as said :)

On 31 Aug., 04:52, 7stud -- <li...@ruby-forum.com> wrote:
> Jim ruther Nill wrote in post #1019226:
>
> > On Tue, Aug 30, 2011 at 10:29 PM, 7stud -- <li...@ruby-forum.com> wrote:
>
> >> > Post model, controller, etc., and I want this controller to redirect
>
> > As 7stud pointed out, you might want to resort to using named_routes.
> > But I
> > think 7stud's syntax
> > is a bit wrong.
>
> Whoops.  You're right.
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment