Forum: Ruby on Rails RE: RE: Re: how to output something from within <% %> tags?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Hogan, Brian P. (Guest)
on 2006-02-23 20:25
(Received via mailing list)
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<br />"
	    "here's some more output<br />"

Then call that from your page

<%=put_some_output "bar" %>
This topic is locked and can not be replied to.