字符串的内嵌形式;
1.<%= link_to "第#{@m}期",:action=>"show" %>
2.def hello(name)
" Welcome, #{name} !"
end
3.Post.find(:all,:conditions=>'id= #{params[:id]}')
1.<%= link_to "第#{@m}期",:action=>"show" %>
2.def hello(name)
" Welcome, #{name} !"
end
3.Post.find(:all,:conditions=>'id= #{params[:id]}')