On Mon, Nov 16, 2009 at 02:43:24AM -0800, Soutom wrote:

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

What version of rails are you working with? Why can't you do something
like this?

    <%= link_to 'Description', device_group_details_path(item.plantid) %>

If all else fails, just specify the url manually:

    <%= link_to 'Description',
        "/device_group_details/index/#{item.plantid}" %>

-- 
"Oh, look: rocks!"
        -- Doctor Who, "Destiny of the Daleks"


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