Re: [Rails] Getting started

2014-08-05 Thread Jim Tobin
To work in development mode, Apache isn't needed. Just run the Rails server: $ rails s Then your browser finds it: http://192.168.1.51:3000/blog Sent from my iPhone > On Aug 4, 2014, at 6:22 PM, McHenry wrote: > > OK, I am lost... > > I have installed both Ruby & Rails. > > $ ruby -v > ru

[Rails] resource paths when using a forward proxy?

2012-08-12 Thread Jim Tobin
I have a Rails 3 app running under Passenger on one machine, and on another, which is our public-facing Apache web server, I've setup a forward proxy to point to the server where the Rails app is running. It works, but the path to the javascripts and stylesheets directories are not properly com

Re: [Rails] Dynamic Select Menus

2011-07-12 Thread Jim Tobin
Hey Rodrigo, Have you looked inside db/seeds.rb? That file demonstrates seeding a City model. Other things you can do, depending on what you need the data to look like are simple things like: states = %w[Alabama Alaska Arkansas] I also think Ryan did a railscast on models that don't exist in

Re: [Rails] Rails Session: How it works?

2011-05-22 Thread Jim Tobin
It's pretty tough to answer such a vague question. What about the Guide didn't help you? http://guides.rubyonrails.org/security.html On May 22, 2011, at 11:21 PM, Emeka wrote: > > Hello All, > > I would need someone to explain to me how Rails session works? I need all > the options availabl

Re: [Rails] Strange view problem

2011-05-22 Thread Jim Tobin
I've had this before, too. But not so recently that I readily remember what was wrong. Cobwebs suggest it was not much more than a syntax error. In your controller you have a close brace but no open brace, which causes my eye to notice that you also have two format.html calls. Is there someth

Re: [Rails] Re: Re: Update association on foreign key change?

2010-02-16 Thread Jim Tobin
Wouldn't ActiveRecord Observer class do what you're looking for? On Feb 16, 2010, at 1:08 AM, Max Williams wrote: > Thanks a lot Michael > > I ended up doing your second suggestion, shying away from the rails > magic since i couldn't seem to really control it. > > Personally it seems most nat

Re: [Rails] Re: Need guidance to learn rails with the goal of getting a job & working with Ruby & Rails full time

2010-01-07 Thread Jim Tobin
I would add to this excellent list: get extremely comfortable working in the console, since Ruby is an interpreted language you can learn/ confirm most everything in the console. You'll see Ryan use it a lot in his RailsCasts, so watch how he uses it as much as watching the subject he's cove