RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Ruby Directed Graph

I created a Directed Graph gem in pure Ruby, using Redis as the backend store. Check it out and let me know if I did it totally wrong. :)

abc20180823 atlanta braves jerseys uggs outlet store pandora charms oakley sung…
http://www.longchamp-outlet.us.com http://www.uggbootssale.in.net http://www.ad…
http://www.longchamp-outlet.us.com http://www.uggbootssale.in.net http://www.ad…
nike free canada goose parka pandora charms north face outlet f…

Terminitor Termfiles

Terminitor is a great tool for getting your development environment setup so that you can get to work faster. If you don’t know about it read up on it here. With the potential of people making awesome Termfiles we though it be great if they could be shared for others to use so we created the Termfile project, which is inspired by Chris Wanstrath (aka defunkt) gitignore project. Check it out and send us some of your Termfiles so others can use them.

Syntax highlighting in the terminal with ruby

I made a little script to read ruby files and spit them out coloured in the terminal. It can be used to replace cat eventually so that you can see the line number and highlighting. It only highlights ruby at the moment and highlights in aweful hard coded colours, but that’s easy to change. Future features could also include highlighting search strings passed through the second parameter.

cool script - did you consider src-highlight + less? …
thanks I never saw that. I would like to highlight search results in the scr…
Another Way is to use the coderay gem, which also installs an executable. You c…

Handle static list in your database (enums-like functionnality)

So, sometimes, In your application you may want to handle things in your User model like sex (female, male) or other static lists. You don’t like ENUM. You want these lists to be handled using ‘textual keys’ in your application but stored in your database using codes in an integer column. You don’t want to join other tables to display these information. You want these lists to be easily ordered, localized and translated using Rails i18n.You want view helpers to display these lists localized and validations helpers to validate the values in the ‘receiving’ model. That’s why we wrote static_list. It’s just a gem install away !

Those interested in this may also find coded_options useful. Similar idea, dif…
Well, there is also https://bitbucket.org/starware/super_map/src which has at l…

Authlogic gotchas

I know, nobody uses Authlogic anymore. But for those few who do, here are two tips which can save you a massive headache.

Is there a link where the available options are discussed? Another thing i’ve s…
Sorcery is a newcomer that’s worth a look. It was created to plug the gap that …
I’m a Devise user, myself, but this Railscast is also worth looking at. …
Now I’m on a real computer, https://github.com/NoamB/sorcery: From the page.…
Loading older posts