Category: Rails

structuring your RSpec project

it is an established convention to put all your rails tests or spec in the test/spec folder. “even jasmine javascript files”:https://github.com/pivotal/jasmine-gem/pull/172 go in spec/javascripts… seriously, wtf? “cucumber features”:https://github.com/cucumber/cucumber-rails on the other hand go in the features folder… so? while i don’t like cucumber (because of the additional complexity that comes with “gherkin”:https://github.com/cucumber/cucumber/wiki/Gherkin), i like the […]

monkey-patching Rails

I’ve been working a bit on a rails plugin for debugging html templates that we use at “Shopify”:http://www.shopify.com/ called “partially_useful”:https://github.com/phoet/partially_useful. It’s a very simple helper that adds HTML-comments to the rendered source, so that you can inspect it easily in your browser’s developer toolbar. The comment hints look like this: […] There are way more […]

Debugging Rails Applications in Development

I’ve been spending a lot of time answering questions on “Stack Overflow”:http://stackoverflow.com/ lately. From what I read, most of the questions come from unexperienced developers. It’s not easy to understand their questions because they often lack code examples, stack-traces or application logs. Because of that I keep repeating a lot of stuff in the comments […]

Bringing Usergroups on Ruby

I am one of the “organizers”:http://hamburg.onruby.de/#wishes of the local “Ruby Usergroup in Hamburg”:http://hamburg.onruby.de/ for over two years now. We meet on a regular basis, every second wednesday each month. Some times we meet in a bar to grab some beers, some times we have full fledged community events with sponsors and high quality talks. All […]

Improved ASIN documentation

Beeing sick sucks, but on the other hand there is a lot of spare time… So, while sitting on my couch, I created a new resource for documentation of my pet project the “asin gem”:https://github.com/phoet/asin/, which you can “find on heroku”:https://github.com/phoet/asin_web: If you have any additions or questions feel free to “fork the project”:https://github.com/phoet/asin_web or […]