Start Rails Console - Ruby on Rails
Just a quick post on the command to start the rails console: Here’s the documentation, it provides a pretty good summary of all the commands you’re likely to need.
Read postLet's take a look at what I've broken today
Page 5 of 7
Just a quick post on the command to start the rails console: Here’s the documentation, it provides a pretty good summary of all the commands you’re likely to need.
Read postJust a very quick post on how to re-index Sunspot/Solr – simply open the console and enter the following command: That’s all there is to it, nice and easy!
Read postDue to a few recent issues with SunSpot (see my previous posts), I’ve decided to uninstall it until I have enough time to work on it properly. Once again, Ruby makes…
Read postHey all, I’ve just gone through setting up will_paginate with sunspot 1.3, just thought I’d share in case anyone else has any troubles/improvements. In my case I’m…
Read postI ran into a bit of a problem with a has_many relationship in rails today: ActiveRecord::HasManyThroughAssociationNotFoundError in FeedbacksController#index … Could…
Read postRan into a bit of trouble with a model today, after a bit of a google I came across this technique which helped me solve it: This simply allows you display variable…
Read postWhile trying to do a migration today I received the following message: undefined method `to_sym’ for nil:NilClass #After running a trace (rake db:migrate –trace)…
Read postJust another quick problem I ran into with rails this afternoon – how to submit a form_for to a custom action. Luckily there’s quite a bit on how to do this in the…
Read postRan into another flash notice issue, my messages were not disappearing after the first view. My code was as follows: It turns out that all you have to do to fix this…
Read postI came across a bit of a weird one this afternoon when trying to validate. Several of my fields appeared to be incorrectly flagged as not having a value. This is the…
Read post