For some reason, killing mysql process and restarting in rails worked.
Category Archives: Rails
Difference Between Postfix and Dovecot
There are two parts when it comes to dealing with mails:
Ruby on Rails 101
First thing that you should know about Rails is: it runs on convention.
Rails Model: has_many And belongs_to
Goal: structuring multiple Birds within each Nest, so that we could find all birds within a specific nest with routes such as /nests/:nest_id/birds
.
Not a Class Error Only In Production Environment
In my case it was the config.eager_load = true
within production.rb
that set it off. Changing it to false
fixed it.
Rails: Add Column Array in Database
Say we want to add a column named selected
to our user
model. Our selected
would be an array of integers.
AngularJS Routing With Rails
Goal: make Angular’s url/controller corresponding system work in Rails.
fe_sendauth: no password supplied
Error: when running rake db:drop
on server was prompted with fe_sendauth: no password supplied
.
Rails Bower Doesn’t Work
Running rake bower:install
doesn’t install a thing.
In my case, having both bower.json and Bowerfile clogged it. Deleting bower.json solved my problem.
Assets Not Being Served With Rails
When assets within app/assets/
are not even being served. Goto config/environments/production.rb
and change the value of following into: