Posts Tagged ‘link_to’

RAILS : link_to with specific URLs

[code="ruby"]

[/code]

Tags: , ,

RAILS - Link to ‘action’

ProjectController
[code="ruby"]
class ProjectController < ApplicationController
def index
@p=Project.find(:all);
end
end
[/code]
indexView
[code="ruby"]
Project#index

’show’,:id=>p.id}%>

[/code]

Tags: ,