Brainstorming a list of Rails Quiz Questions for a Junior RoR Developer
Which files are created by the rails plugin new foo generator (assuming you haven’t patched the generator), and what do they do? README.rdoc – Where you put documentation Rakefile – Creates standard rake tasks for the gem. rdoc, and test. foo.gemspec – Standard gemspec doc to load in lib/foo, the version file, declares Spec data … Read more
Interesting article about getting rid of nested attributes
http://matthewrobertson.org/blog/2012/09/20/decoupling-rails-forms-from-the-database/ Still figuring out how I feel about this…
Rails snippet: Storing ENV keys in config
These are pretty much the exact steps from Paul Elliot’s blog post on the subject. In case you found this post from google, his blog post is a better source for this sort of information than mine, so please look at his post. I’m just repeating the steps here because I keep looking it up … Read more
Code Snippet for getting a certain field from a scoped model
This comes up a lot and I keep reinventing it: @user.cars.map(&:name) Note that pluck doesn’t work because it’s a class method not an instance method.
New Rails Project breedmapper.com
Working on a new website, breedmapper.com. It’s an app to help people select dog breeds. Basically, I was trying to find dog breeds that might be good for me (never owned a dog before) and found it really difficult to research different breeds, filter, etc. So I’m making an app for it to help myself … Read more
Scraping tools
selectorgadget nokogiri
Interesting Rails Posts
http://aslakhellesoy.com/post/11055981222/the-training-wheels-came-off http://practicingruby.com/articles/shared/ozkzbsdmagcm http://www.webdesignfromscratch.com/web-design/web-2-0-design-style-guide/ http://www.webdesignfromscratch.com/web-design/web-2-0-design-style-guide/ https://github.com/joshuaclayton/blueprint-css/wiki
Setting up for Rails development on Windows
Came across a road block while setting up for rails development on windows: rvm doesn’t work! I usually do rails work on windows only when I’m required to use windows 7 (as opposed to osx when working with windows-only software for clients). Rather than try to deal with other gem workarounds, I’ve decided to install … Read more
What I’ve noticed from going to Ruby meetups in SF for the past few weeks
I’ve been going to meetups in San Francisco the last few weeks with the goal of meeting people and seeing who’s out there. I’ve met a few cool people at these meetups. Something that strikes me as strange though, is how few people I meet at these meetups actually contribute to the ruby or rails … Read more
SnapFresh.org Recently won the Applications For Good San Francisco Competition
So I recently went to a regional hackathon which was a regional try-out for a national competition called Applications for Good the first weekend I moved back to San Francisco. I was feeling like being creative, and thought what better way to be creative than apply my skills in a way that might help people. … Read more
ParkFinder – An sms app that finds the parks closest to a given location
In preparation for the appsforgood competition, I’m writing a small app called “Parkfinder.” It’s an app to train myself on using sms and google maps to find points of interest close to a given location. I’m writing it on Ruby on Rails 3. And since the primary interface is intended to be SMS, the graphical … Read more
Ruby on Rails Notes: Standard Project Setup
Writing down steps before writing a script… rvm gemset create appname rvm gemset use appname gem install rails –no-rdoc –no-ri rails new appname -T cd appname echo rvm use [rubyinstall]@[gemsetappname] > .rvmrc edit Gemfile add rspec to development and test add haml, sass to all add heroku to development bundle install rails generate rspec:install git … Read more