2009/11/16 Soutom <[email protected]>:
>
> my code is in .rhtml page
>                <%= link_to(image_tag( @plantStatusImage[i], :style=>"
> border:none" ,:height=>"35"), {:controller =>
> 'device_group_details', :action => 'index', :id =>
> item.plantid}, :post => true) %>
>
> but, then i redirect to my nwxt page e.i
>  http://localhost:3000/device_group_details/index/002
>
> and here my CSS and other javascript is not working. achually my
> desire link is http://localhost:3000/device_group_details/
>
> So how can i solve this problem..what is my fault. ? and also why the
> CSS is not working ?

You have specified :id => ... in link_to so it is adding the id to the
url.  Try without :id =>

Colin

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to