04 Aug '13, 8pm

#Ruby on Rails Best pratices - Big Controller vs Small Controller

I need some informations for the best pratices in Ruby on Rails, especially with Controler who have to do a lot of things , so, a simple "show" action is now up to lines. I know, it's not really good, and i have specific code in it. Here is a sample code : def show sound = Sound.find(params[:id]) @xml_path = File.dirname(sound.file.path) s3 = AWS::S3.new( :access_key_id => 'XXX', :secret_access_key => 'XXX') @url = s3.buckets['dev'].objects[sound.file.path[1..-1]].url_for(:read, :expires => 10*60) if sound.id_job != 0 && sound.transcript_progress != 100 @response = Savon.client("http://srap.php?wsdl").request(:avance) do soap.body = { :Jeton => "abcdef", :ID_job => sound.id_job, } end @response = @response.to_hash @progress = @response[:avance][:avancement].to_s.split("#")[1]# ID_job received is formed like "OK#123", we keep "123" if @progress == "Termine" sound.transcript...

Full article: http://stackoverflow.com/questions/11984405/ruby-on-rails...

Tweets

Cut down on the lines of code - choose Ruby on ...

content-dir.com 05 Aug '13, 3am

Ruby on Rails has been out in the web development market for quite a long time, but recently its popularity has become con...

Comenzando con Ruby On Rails: via @YouTube

youtube.com 04 Aug '13, 3pm

En la programación de aplicaciones web existen muchos lenguajes de programación y todos son válidos pero es importante con...

These tips are awesome!

These tips are awesome!

coffeeforless.com 04 Aug '13, 6pm

Coffee has been elevated to an art in some cultures. Coffee drinkers across the globe pride themselves on their coffee pre...

Building a hard drive scratch controller

Building a hard drive scratch controller

hackaday.com 02 Aug '13, 4pm

The gist of the build is that you use an optical mouse sensor to track the movement of the platter. But [Andreas] made thi...

5 IDE’s for Ruby on Rails Developers submitted ...

reddit.com 06 Aug '13, 5am

Please try to keep submissions on topic and of high quality. Just because it has a computer in it doesn't make it programm...

Very simple fix of ruby program by werendd

freelancer.com 07 Aug '13, 7am

Project Description: The program basically searches and scrapes an API and puts the scraped page urls into 4 different par...

5 IDE pour les développeurs Ruby on Rails

news.humancoders.com 05 Aug '13, 4pm

Ruby 5 IDE pour les développeurs Ruby on Rails (en) Partagé par Olivier Pitton il y a environ 2 heures   Présentation...

5 IDE’s for Ruby on Rails Developers - - @DZone Big Link by isenthil

5 IDE’s for Ruby on Rails Developers - - @DZone...

dzone.com 06 Aug '13, 12am

This blog post will list out some of the IDE‘s which are used by the Ruby on Rails Developers. 5 IDE’s for Ruby on Rails D...

New Job Alert: Sr. Ruby/Rails developer who wan...

rorjobs.com 04 Aug '13, 8pm

Novu who? We're a young, growing company on a mission to help people live a healthy lifestyle. Our team is a small, highly...

Maybe your laptop is not the best place to build Rails apps? Here's "Ruby on Rails on Nitrous.io"

Maybe your laptop is not the best place to buil...

railsapps.github.io 09 Aug '13, 4pm

Installing Rails on Windows is frustrating and painful. I often hear that students have given up on learning Rails because...

Workshop: Your First Ruby on Rails App! in @Tog...

tog.ie 06 Aug '13, 7pm

Ruby is the language and Rails is the framework that stopped people yawning at web development, encouraged coders to try a...

Did you know is happening? #rails #ruby #pune

Did you know is happening? #rails #ruby #pune

railsgirls.com 05 Aug '13, 10am

Applications close: Monday, August 19th Acceptances informed: August 21st Location: ThoughtWorks Technologies (India) Pvt ...

[Sprite_TM] OHM2013 Talk: Hacking hard drive controller chips

[Sprite_TM] OHM2013 Talk: Hacking hard drive co...

hackaday.com 02 Aug '13, 5pm

Even if he hadn’t done any firmware hacking on this hard drive [Sprite_TM's] digital exploration of the controller is fasc...

New job available: Sr. Ruby/Rails developer at ...

cooldesignjobs.com 05 Aug '13, 9am

Novu who? We’re a young, growing company on a mission to help people live a healthy lifestyle. Our team is a small, highly...

Write ActionMailer emails templates in Markdown...

github.com 03 Aug '13, 7pm

markdown parser by default. Kramdown is pure ruby, so it runs the same across all ruby implementations: jruby, rubinius, M...