Welcome To Snipplr
Everyone's Recent Snippets Tagged rails
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I normally paste this into config/mongrel.rb, then add "require 'mongrel'" in my config/deploy.rb
Once that's done, you'll be able to start, stop, and restart your mongrels like so:
`cap deploy:mongrel:start/stop/restart`
3
744
posted 16 years ago by jimmyebaker
Been wanting to made one of these for a while and finally I got round to it.
For some examples please visit the post:
http://www.dom111.co.uk/blog/coding/db/8
Any comments suggestions appreciated.
CreativeCommons ShareAlike
3
1581
posted 16 years ago by dom111
I didn't create this but I use it all the time. Just drop it in lib/tasks/fixtures.rake
1
665
posted 16 years ago by markpercival
"When using haml, an HTML tag is represented using %tagname, but in the case of an HTML tag with attributes, the representation is %tagname{:attribute => value}.
It turns out there must be no whitespace between %tagname and {:attribute => value}....
1
752
posted 16 years ago by cczona
"The new naming scheme for template (eg. .html.erb) does not seem to work for partials. When using :partial => 'form' a filename "_form.html.erb" is not recognized. "
Rails now requires the partial to be referenced by dotted format
1
787
posted 16 years ago by cczona