front and back-end web development, Leeds, UK
Richard's Blog - Design, coding and life in Japan
Ruby on RailsSubmitted by Richard on Wed, 10/21/2009 - 13:04
Found this link yesterday... Awesome
21 Ruby Tricks You Should Be Using In Your Own Code
Submitted by Richard on Tue, 10/20/2009 - 08:58
I am creating a REST API in Rails which outputs JSON data. In some cases I need multiple objects to be pushed out in the data, which is fine until you need to use associations in the mix also.
form = Form.find(params[:id]) products = Product.all
Submitted by Richard on Sat, 10/17/2009 - 14:24
I was surprised about how easy and nice this solution was, I needed a separate model to manage 2 different kinds of sessions in my rails project. A regular user session and a cart specific user session. I don't know if this is the best way to organize my data but it is a legacy system that is built that way!
Submitted by Richard on Thu, 10/15/2009 - 08:24
One thing that drives me mad about rails since I am not using it everyday is forms.
Although I love it to pieces why do you need 2 types of form helper (one for forms wrapped around an object and one for not). Although after a little time you find yourself remembering which is which.
Rails is supposed to save pain which it usually does, but I find form helpers in other frameworks far easier to use as I don't have to think about these different helpers. Lets hope they fix it in Rails 3.
Recent Blog Posts
- Testing controllers in Lithium 2nd Feb 12, 18:19
- Practical Internationalization in Lithium 31st Dec 11, 02:06
- Using OAuth in Lithium 30th Dec 11, 23:47
- How to add your own Tokens from CCK fields in Druapl 7 17th Jun 11, 04:49
- Weaving Lithium #li3 into a legacy PHP application incrementally 5th Oct 10, 11:54