RE: RE: Re: how to output something from within <% %> tags?


#1

Open up one of the files in app/Helpers like application_helper.rb and
put this in

def put_some_output(foo)
      "here's the output of my method with the parameter #{foo}

inline
"
“here’s some more output

end

Then call that from your page

<%=put_some_output “bar” %>