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.

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.…

Ruby on Rails workshops in Boston

If you’re a developer in the Boston area looking to sharpen your skills, Fairhaven Capital and thoughtbot have teamed up to offer training courses in Boston at 50% off regular price ($600 for 2 full days of training, intro and advanced levels). Details

ENUMs in Rails

I just wrote an article on using ENUMs in Rails - I describe why and how to get them into your rails applications and some potential problems

I wouldn’t follow this article. ENUMs are really only useful when you have a d…
Why would you be doing joins on an STI or polymorphic type column?
@wbailey, You bring up a good point and I wouldn’t advise this for use in early…
On our database layer that is

Programming Homework Help

Go and check AssignmentExpert.com. These guys are doing great job and can help you with every programming problem online! (Ed: Careful here..)

I just wondering where are they from and can I trust them.
Just visited this site and spoke with their support team operator. It looks lik…
Why hasn’t this advertisement been pulled yet?
I agree with wbailey: even if it weren’t spam, it is related to Ruby in only th…

Rubinius: What's next? (Plus.. a look at its Ruby-based internals)

Some interesting Rubinius blog posts in the last couple of days. First, Brian Ford showed us what’s next for Rubinius (including scarily good concurrency, Windows support, JIT fun and more) and then Yehuda Katz decided to get us comfortable with Rubinius’ pure Ruby internals. There’s a lot of great stuff to pick up from both of these posts if the nitty-gritty of implementing Ruby interests you.

Loading older posts