RAILS : link_to with specific URLs
[code="ruby"]
[/code]
A student at FIT-KMITL
[code="ruby"]
[/code]
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]