Welcome To Snipplr
Everyone's Recent Ruby Snippets Tagged ruby
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Digs through the exim log and gives a count for every email address that's generating SMTP errors
0
643
posted 13 years ago by beaknit
Ruby
Ruby / Rails - A refresher reference for me because I forget... create project generate scaffold scaffolding migrate db
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server
0
1066
posted 13 years ago by brandonjp
links (full <a href="#"> element) to Show Edit Destroy Delete records in view *.erb
must be in the record loop:
0
1640
posted 13 years ago by brandonjp
Place script into Automator (select "Run Shell Script" choose /usr/bin/ruby as the shell).
You'll need to create a bit.ly account which will give you your API key for authentication.
0
683
posted 13 years ago by insanedreamer
It's necessary to do this for each of automatic_attrs, override_attrs, normal_attrs and default_attrs
0
837
posted 14 years ago by therobot
Quick conversion from a string of binary into ascii, and back again.\r\nUse B* for MSB and b* for LSB first.
0
826
posted 14 years ago by jimbobmcfred
I’ve recently had to parse some pretty large XML documents, and needed a method to read one element at a time.
Here’s a fairly simple solution in Ruby form.
0
828
posted 14 years ago by dom111