Thursday, January 9, 2014

[Rails] Re: Sntax error after generating project



On Thursday, January 9, 2014 5:04:17 PM UTC, thad wrote:
I figured out how to resolve the problem. I had to go back to the old hash notation. But this shouldn't a problem since I'm using the most recent versions of ruby and rails, right?

My guess would be that you actually have 2 versions of ruby installed and aren't using the one you think you are.

Fred

 
On Thursday, January 9, 2014 7:08:22 AM UTC-5, thad wrote:
I generated the project with the command rails new reservation_maker -d mysql and after it was finished generating I got 4 errors. All were syntax error, unexpected ':' .The first was in the gemfile on the line gem 'sdoc', require: false. The second in application_controller.rb on the line protect_from_forgery with: :exception. The third was in session_store.rb on the line ReservationMaker::Application.config.session_store :cookie_store, key: '_reservation_maker_session'. The last in wrap_parameters.rb on the line wrap_parameters format: [:json] if respond_to?(:wrap_parameters). I looked back at a previous rails project and it has the same setup and lines of code as this one but none of the errors. I replaced the : with => and it cleared the errors but when I try to run the server it tells me that there is an error in the gem file. Also I'm using ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux] and rails 4.0.2. So, how can I fix this?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8eb0a2b2-4d80-439e-bebb-2a951d72af6e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate