It probably says something about me (that I wouldn't like) that a thoroughly enjoyable evening to me is to have a baseball game on while assembling a cabinet in my pajamas. I bought two cabinets yesterday and put together my first one today.
Ikea cabinets are pretty easy to assemble. The only thing I didn't like about these is that the legs aren't permanently attached. So when I picked it up to stand it up, one of the legs fell out. I think they should have given me some screws to attach them. I may do that later myself.
Also interestingly is that this is a cabinet for a sink, yet it has a solid bottom. So I'm going to have to cut out a whole in the bottom for the pipes and drain to come up. I think I'm just going to cut a very large whole in the bottom so I don't need to mess around with anything when I decide to put the cabinet in.
I made my first repairs today.
First I fixed the hole in the floor.
Then I went to Home Depot to buy more Durock. I had to move the seats up as far as they could go to get four sheets in my car.
Here's also a shot from the other day of my new window. I still haven't figured out what I'm going to put here.
Lastly, to get an idea of where everything will be, I moved my refrigerator and stove to their new prospective locations. I'm not completely sure I'm sticking with this layout, but it's what I have for now.
These are just some notes on doing everything in rails by hand.
Controllers - name file plural_controller.rb
class PluralController < ApplicationController
Models - name file singular.rb
class Singular < ActiveRecord::Base
Migrations - name file date_create_plural.rb
class CreatePlural < ActiveRecord::Migration
create_table :plural do |t|
Mailers - name file app/mailers/singular_mailer.rb
class ApplicantMailer < ActionMailer::Base
I'm starting a new rails app, using Rails4, and am trying to do more things by hand instead of depending on generators. I actually think generators are great, but I want to better understand how all the parts fit together. So I want to know how to do things by hand, instead of depending on the generators.
Yesterday, I made a couple of controllers (home, users and user_sessions). Interestingly, my layout was only working on user_sessions and neither of the others. The problem was in how I set the controllers up. I had this:
class UsersController < ActionController::Base
and it should have been this:
class UsersController < ApplicationController
I found the answer here. From that page, "Controllers other than your ApplicationController need to subclass from ApplicationController in order for their views to be rendered within the application.html.erb layout"
That's basically it for gutting the kitchen.
It's always nice when you pull up boards and find a hole in the middle of the floor for no apparent reason. I can't imagine what use to have been there that required the hole. I'll have to work on that next, but it's hot out and I'm done for the day. Plus the garbage cans are full and I have more ready to go.