I’m new to ruby on rails and am realy quite having a problem with
passing values. I created a test folder and have 3 files:
<%= render_component(:controller => “test”, :action => “pass”) %>
class TestController < ApplicationController
@test = “<a href=“main?name=123”>Testing!”
@passed = params[:name]
#flash[:notice] = ‘456’
flash[:notice] = @passed
I can’t seem to get the value of name rendered to my page which is
suppose to be 123.
Would really appreciate your help!
Thanks in advance!