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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60e38de043848f82392062088f191213?d=identicon&s=25 Hogan, Brian P. (Guest)
on 2006-02-23 19: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 />"
      end

Then call that from your page

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