On 31 August 2010 08:29, Todd Weeks <[email protected]> wrote: > Trying to learn how to work with arrays. Using RubyMine. > Trouble with array syntax below in html.erb file. > <html> > <head> > <title>Ruby Arrays</title> > </head> > <body> > <%= array = ['a','b','c'] %> > </body> > </html> > Shows up in browser as this: > ["a", "b", "c"]
You have asked it to show the array and it has done so. What are you trying to do? Possibly you need something to use something like array.each. Possibly have a look at some basic Ruby tutorials (as opposed to Rails tutorials). > using 1.9.1 I presume that is the version of Ruby, I don't know which version of Rails you are using, but I believe there are problems with ruby 1.9.1 and some versions of rails. Colin -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

