Ruby on Rails Tuesday, August 31, 2010

Im not getting the output I expect. In the tutorial I am doing. It is suppose to just write the values to the browser.


Which would write a,b,c to the browser and shouldn't also be showing the array brackets or double quotes.
Then I would be able to continue to call the values of the array and write the results to a browser using ruby code within the erb file.
My question: Whats wrong with the code I'm writing?
Thanks for your feedback!


On Tue, Aug 31, 2010 at 1:48 AM, Michael Pavling <pavling@gmail.com> wrote:
On 31 August 2010 08:29, Todd Weeks <tcr.todd@gmail.com> wrote:
> <%= array = ['a','b','c']  %>
> Shows up in browser as this:
> ["a", "b", "c"]

What's wrong with that?

> Thanks for any suggestions.

Your post doesn't include any questions, so it's a little hard to know
where you want help.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




--
Warm Regards,
Todd Weeks
801.814.9084

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment