The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Leaflet-Rails rubygem.
I’m currently working on implementing a gem that includes leaflet.js in the asset pipeline. It can be found at RubyGems and I would love to have some feedback on it, as it’s my first gem. Thanks!
RVM, Ruby 1.9.3-p194, ruby-debugger and "You need to install ruby-debug"
Blog post about fixing the “You need to install ruby-debug to run the server” message when trying to use RVM, Ruby 1.9.3 and Ruby debugger.
paperclip-storage-tmp released
I’ve just released a new version of paperclip-storage-tmp gem, which allows you to use an isolated, temporary storage for Paperclip 2.x (useful especially during tests). [more inside]
fork gem released
I released the fork gem, which provides a simple and object oriented interface to forking of your process. The API provides ways to get the return value of a fork, get exceptions raised and send objects between the parent and a fork. The project is - of course - found on github, and the documentation is available online.
jquery-ujs and jQuery trigger
Blog on jquery-ujs and jquery trigger .
5 Awesome Things About RubyMotion
Blog post about our experience so far with RubyMotion
Ransack attribute whitelisting, and why your class macros (might) suck
I just posted a quick walkthrough on using attribute whitelisting using the Ransack search gem. But, ignore that part. It was really just an excuse to talk about why a class macro was the wrong way to go about implementing this kind of feature.
Get Rid of That Code Smell - Duplication
Check out my new post about duplication code smell, it’s right here.
Pass Open Files Between Ruby Processes with UNIX Sockets
I wrote an article about passing around open files (eg. live TCP connections) using UNIX sockets in Ruby. One person described it as “pretty slick in an old school deep unix geeky kinda way”.
Decrypt cisco encrypted passwords
Just because i needed to connect to a cisco vpn using osx lion i’ve build Cisco decrypt so i don’t need to wait for the cisco guys to actually build a client. It’s kind of evil but it can save you some time.
Skypekit for Ruby
Just released Skypekit for Ruby by Railsware. Also libskypekit can be wrapped in Lua, Erlang, LISP, etc.
Gem of Thrones: this task must only be done by one!
Distributed locking via e.g. memcache to ensure 1 and only 1 does e.g. updating of a shared cache. gem_of_thrones
Bloombroom v1.0, Ruby gem for continuous (streaming) fast Bloom filter
Bloombroom v1.0 a Ruby gem with fast Bloom filters for bounded and unbounded (streaming) data, FNV hashing and bit fields has been released to Rubygems
Deploy & Edit a Facebook App in 5 Min
Ever want to write an App that uses the Facebook graph? Well you can have a Facebook enabled site up, running and edited in only 5 minutes.
[German] Rails 3.2.3 veröffentlicht
Ruby on Rails wurde in der Version 3.2.3 veröffentlicht. Neben einigen Bugfixes wurde auch einiges an der Sicherheit des Frameworks und dem Schutz vor unerlaubten Parametern bei mass assignment geändert. Weiterlesen
Rails Subcontracting Essentials
I have been working hand-in-glove with a Rails subcontractor. Here’s our ultra-effective process.
TinyGem: A small library for small gems
I threw together a small hack to build a gem out of a single source file.
Cleaning parameters from a given url in Rails
The other day I needed to clean a url from one of the parameter, blogged about it on the cookies blog.
CSRF and Rails
Posted a blog on CSRF and Rails .
XSS and Rails
Posted a blog on XSS and Rails .
Rails Development with Facebook Canvas
The following instructions/solutions will help you to access your http://localhost:3000/ through Facebook: Rails Development with Facebook Canvas.
Gemfile trick for github repositories
If you’re using github repos in you Gemfile, check out this tip : [more inside]
rubygems-bundler integration gem reaches 1.0.0 - No more “bundle exec …”
I just wrote on my blog about the forthcoming release of my gem rubygems-bundler 1.0.0 you can try it now with:
Domain Driven Design for Rails Developers. Part 3: Aggregates.
You start with nicely designed groups of objects. All the objects have clear responsibilities, and all interactions among them are explicit. Then, you have to consider additional requirements, such as transactions, integration with external systems, event generation. Soon you end up with a bunch of interconnected objects without clear boundaries. Maintaining this mess becomes harder and harder. Thankfully, Domain Driven Design provides a good remedy for this situation: Aggregates. Read more