I’m just researching and doing evaluations of how to integrate different eCommerce platforms smoothly into Ruby on Rails applications. On this journey I’ve found a Magento gem which is a wrapper around the core XML RPC calls of Magento. I haven’t tested it yet, because the author himself says, that it is not fully tested. [...]
Archive for the ‘Ruby/RoR’ Category
Sass – Syntactically Awesome Stylesheets in Rails 3.1
Sass is cool! And if we can believe David Heinemeier Hansson, it will be part of Rails 3.1. Sass makes CSS fun again. Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It’s translated to well-formatted, standard CSS using the command line tool or a web-framework plugin. via Sass [...]
Twitter says goodbye to Ruby on Rails
The guys at Twitter are moving away from their Ruby on Rails front-end servers towards their customized Java server Blender which is based on good old Netty. In the next phase of our deploy, we will eliminate Ruby on Rails entirely, connecting users directly to Blender and potentially reducing latencies even further. (via twitter.com)
Rails 3.0.5 has been released!
Riding Rails: Rails 3.0.5 has been released!. Bugs fixed: Fix when gzip returns a UTF-8 string on Ruby 1.9, when it is actually binary. commit Active Record limit values will not escape Arel SQLLiteral nodes. commit Relation#where calls will always produce ANDstatements regardless of how conditions hashes behaves (reverting 00693209ecc). Observer callbacks will only be executed once when usingSTI classes [...]
Ruby on Rails support dropped in Netbeans 7
What a pity. I really liked the Ruby support in Netbeans. After thorough consideration, we have taken the difficult step to discontinue support for Ruby on Rails in the NetBeans IDE. Two main issues underpin this decision: Java SE 7 and Java Development Kit 7 (JDK 7) are the next major releases of the Java [...]
RSpec: Behaviour-Driven Development tool for Ruby
RSpec is a Behaviour-Driven Development tool for Ruby programmers. BDD is an approach to software development that combines Test-Driven Development, Domain Driven Design, and Acceptance Test-Driven Planning. RSpec helps you do the TDD part of that equation, focusing on the documentation and design aspects of TDD. via RSpec.info: Home.
`require’: no such file to load — readline (LoadError)
I got the following error when trying to start the ‘rails console’ in a Rails3/Ruby 1.9.2 project: `require’: no such file to load — readline (LoadError) The problem was that readline was not installed properly. To install it, I needed to go into the ruby sources. In my case they were located in the directory [...]
Creation of nested models in Rails3 failed with HashWithIndifferentAccess error
I just tried to create a Rails model which contained nested other models and got an HashWithIndifferentAccess error. I used accepts_nested_attributes_for in the parent model. To solve this problem the solution was to add an attr_accessible :MODELNAME_attributes for the child-model (MODELNAME) into the parent model. E.g. Parent model class ParentModel < ActiveRecord::Base has_one :child_model attr_accessible [...]
Autoload modules in Rails 3
In Rails 3 the modules in lib/ are not loaded automatically. You need to a a one liner to the application.rb: config.autoload_paths += %W(#{config.root}/lib)
no such file to load — dispatcher
I updated to Rails 3 and tried to deploy the application using passenger. I’ve got the following error: no such file to load — dispatcher The thing was, that Passenger treats the Rails 3 application as an Rack application because of the config.ru file. To get it run again, you need to change the passenger [...]
Follow me on the following platforms if you like: