rubyonrailsin

A Ruby and Rails talk

Wednesday, March 24, 2010


[Rails] link_to underlying urls/paths are showing in the actual view

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

for example I have the following simple code in my views:

<%= link_to "Here", :controller => 'home', :action => 'inside_here' %>

I get the "actual" view in the page looking like this:

Here (/home/inside_here)

where the underlying url is showing right beside the "Here" word. By
default, the "Here" word should only be outputted and not the path
underneath it.

Since we presently have no solution to this, my front-end guy keeps on
enclosing these links with <divs> so as to hide the underlying links.
It's a big headache for him.. he's stressed.

Does anybody have any suggestion on what's happening? Maybe there's
something wrong with the layout or with the stylesheets? Or
javascript? Since the front-end guy was previously developing using
Php and HTML that there might be some tiny detail that shouldn't be
used in Rails by convention. Although he knows the basics needed to
output stuff (like link_to, image_tag, etc) in Rails... Thanks a lot!

--
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

Subscribe feeds via e-mail

Blog Archive