Create Button which does not Submit - Ruby on Rails
Just another quick post – how to create a button which does not submit a form when it’s clicked: Let me know if you have any problems.
Read postLet's take a look at what I've broken today
Just another quick post – how to create a button which does not submit a form when it’s clicked: Let me know if you have any problems.
Read postI ran into a bit of a problem today after implementing a search form that appeared on every page. When the login page was loaded I received the following error: No…
Read postJust 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 postHad a bit of a muck around with jQuery sliders today, just though I’d post the code I used to set a default value in case anyone else has a use for it: Just sub…
Read post