|
|
While working on my upcoming BigAuthor project, I came upon an interesting challenge that turned out to be so simple with MongoMapper that I just have to share it here. Need to create a hash of multiple filter parameters on a MongoMapper document using a form that is cleanly resource-based, using InheritedResources? It’s [...]
Not meant to be a “this is what should be done” as much as a “this is what Matt uses, based largely on community popularity, best practice, and Matt’s personal tastes.”
Take it for what it is: a point of discussion.
Of course, the skeleton of any Rails app will vary from project to project, depending on [...]
The title of the post is more-or-less a verbatim quote from a coworker, as well as from an unrelated colleague of mine from a previous job. I was asked that question and, to be honest, I was a little thrown both times. I didn’t actually know why I use HAML. I guess I’d [...]
Frequently, while working with MongoDB and MongoMapper, I run across an implementation of something that blows me away with its beauty. This, my friends, is one of those times.
Given: a Users collection where the users’ names are stored in an Array key called name. i.e. :name => ["Patterson", "Matt"]. It [...]
Can that title have the word ‘mongo’ in it any more times? Well, fear not, I’m about to use it even more…
So, I had to fool around a bit to get the so-called “Mongosphinx” gem working with my app architecture. Thought it might be helpful to others to demonstrate how I did it. [...]
Just solved an interesting problem when using the latest Thin web server (1.2.5) with Ruby 1.9.1 and Rails Metal.
The code in Rails Metal endpoint:
def call(env)
if env["PATH_INFO"] =~ /^\/tags.txt/
request = Rack::Request.new(env)
params = request.params
query = params[’q']
[200, { "Content-Type" => "text/plain" }, words_from(query).join("\n")]
[...]
Put all this crap in your ~/.aliases file. Do it!
alias migrate="rake db:migrate db:test:prepare"
alias remigrate="rake db:migrate && rake db:migrate:redo && rake db:schema:dump db:test:prepare"
alias gadd="git add -u && git add . && git status"
alias svnprecommit="git svn rebase && rake features && rake test"
alias cuc="cucumber -r features"
alias g="git"
alias tu="ruby_test unit"
alias tf="ruby_test functional"
alias su="ruby_tu_rs unit"
alias sf="ruby_tu_rs functional"
alias ti="ruby_test [...]
Here’s what I had to do to get it working:
Install ‘tre’
- but *don’t* use macports; tried that and it bombed, instead do:
wget http://crm114.sourceforge.net/tarballs/tre-0.7.5.tar.gz
tar zxvf tre-0.7.5.tar.gz
cd tre-0.7.5
./configure
make && sudo make install
Install ‘crm114′
wget -m -np http://crm114.sourceforge.net/src/
Follow Directions!
now, follow these directions
Enjoy!
|
#prostoknow Twitter people you might not know, that I think you should know:
@calvinicus
Excellent graphic artist who understands the web
@codesphere
iPhone app developer, Java pro, tireless and efficient
@ozmox
Ruby/Rails pro, thoughtful Agile scrummaster
@ravolt
Java and Ruby pro, Agile process master, brilliant manager
@swany10012
Excellent graphic/web designer, jQuery master, PHP pro
@wallywheels
Ruby pro, great with Rails, Sinatra, and everything else
|