Tuesday, April 5, 2011

Re: [Rails] Re: Unable to connect

On 5 April 2011 20:44, Bruce <bwilsonnow@yahoo.com> wrote:
> On Apr 5, 9:34 am, dana tassler <dana.tass...@gmail.com> wrote:
>> I've made that mistake myself a time or two (still new to Rails).
>>
>> The idea, Bruce, is that you want to run your *specific* web
>> application.
>>
>> If you think of it that way, that may help.
>>
>> And not that I have a ton of experience, but I've found that when I
>> need to start the server then I'm usually inside that application's
>> directory somewhere anyway.
>
> Thanks.  Here is what I tried.
>
> The new rails application I created is in the folder c:\Sites\blog\app

I think it is probably the blog folder that you should be in, the root
folder of the app, not the 'app' folder of the root folder of the app
:) In fact it probably doesn't matter, it seems to have worked out
what to do.

> I start the shell command on that folder and get this:
>
> => Bootiing WEBrick
> => Rails 3.0.4 application starting in development on http://0.0.0.0:3000
> => Call with -d to detach
> => Ctrl-C to shutdown server
>
> Then a few seconds goes by and it continues with:
>
> exiting
> c:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1l8/gems/activessupport
> -3.0.4/lib/active_
> support/dependencies.rb:235:in ''load': C:/Sites/blog/config/routes.rb:
> 62: syntax error, unexpected $end, expecting KEND <SyntaxError>

That is saying it has found a syntax error at line 62 of routes.rb,
which is likely the end. You probably have an 'end' missing or
something similar. If you cannot see it paste the complete file here.
You can check whether you have got it right without starting the
server by running
rake routes
which should show the valid routes you have specified.

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 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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate