Intermediate Rails With RailsBridge
Now, I want to start off by being brutally honest: I have no idea what I'm doing. Especially in regard to Rails.
However, for some strange reason, I keep plugging along anyway. It's like, there is something inside of me that wants to see exactly how far I can stretch myself. I want to see if I can reach the outer limits of my intelligence...to see if there is some ceiling in my brain where I just can't learn any more new things.
Besides all of that, coding is a lot of fun. :-)
So today I decided to tackle the Intermediate Rails track on RailsBridge. We're supposed to be building a Rails message board.
At some point, I must have subscribed to RailsBridge on their GitHub page, and I got notified that someone suggested that the jump from the Intro to Rails track and the Intermediate Rails track was too steep of a learning curve, and that there should be a track in between the two. WHAT A GREAT SUGGESTION. I'm looking at this new track cross-eyed.
But hey, I'm on my own time, on my own computer, doing my own thing. I can always delete it and start over if I make a mistake.
So far I used Rails 4.0.1 to generate a new app called "blog".
I don't know how to insert code syntax into Tumblr yet, so I'm just going to do it like this:
[adrianne@localhost railsbridge_intermediate]$ rails new blog
Then, you know you can always run Rails server to see how things look:
[adrianne@localhost blog]$ rails server
I'm not posting every step, just highlighting a few points.
Once I got there, I saw that I had to get rid of the index page and set the home page.
So I created a new page in the home_controller directory and called it home_controller. Not very creative, I know.
I placed the following message in the home_controller file with Sublime Text (text editor):
<h1>Home Controller Static Page</h1>
Then I edited the route.rb file:
Blog::Application.routes.draw do
get "home_controller/index"
root 'home_controller#home_controller'
I know I should have pushed this to GitHub by now, but I'm not confident that I'm on the right track yet. All I can say is that setting home_controller as the static home page seemed to work, because now when I go to http://localhost:3000/ (on my local computer), I see the message:
Home Controller Static Page
I'll keep you posted on my progress.