26 Aug '12, 7pm

Ruby on Rails - passing a returned value of a method to has_attached_file. Do I get Ruby syntax wrong?: I'm writ...

The problem is that you're trying to use an instance method picture_sizes_as_strings in a declaration (has_attached_image ) that's run on the class level. It's the difference between calling MyModel.picture_sizes_as_strings and MyModel.first.picture_sizes_as_strings In the first case we are referring to a class method (a method on the class MyModel itself) and in the second case we are referring to an instance method (a method on the individual my_model object.) So first of all you have to change the methods to class methods by prefixing their names with self. , so: def self.picture_sizes { large: {width: 120, height: 150}, small: {width: 60, height: 75} } end Now that doesn't completely fix your problem yet, because has_attached_image is processed when the model is first parsed by ruby. That means it will try to run has_attached_image before you define self.picture_sizes ...

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

Tweets

Ruby on Rails: Get Onboard Today #rails #ruby #Tutorials

Ruby on Rails: Get Onboard Today #rails #ruby #...

desizntech.info 24 Aug '12, 4am

Ruby on rails uses tools that make simple development tasks much easier. RoR also has things like scaffolding that automat...

Top Ruby Article: Rails: five year plan?:

rubyglasses.blogspot.com 26 Aug '12, 8am

My workplace is putting a tender out to a government body, hoping to secure some work for a big development happening soon...

#softwaredevelopment Ruby on Rails (ROR) - Acco...

odesk.com 26 Aug '12, 7am

We are looking for a fixed price ROR developer who can finish an accounting module in our enterprise CRM. Ongoing work is ...

estou lendo "Ruby On Rails" #skoob

skoob.com.br 25 Aug '12, 2pm

Sinopse - Ruby On Rails - Rodrigo Urubatan Ruby é uma linguagem bastante popular para automação de tarefas e também para d...

New EPUB and Mobi versions of the Ruby on Rails...

news.railstutorial.org 27 Aug '12, 8pm

New EPUB and Mobi versions of the Ruby on Rails Tutorial I'm pleased to announce the immediate availability of EPUB and Mo...

Ruby on Rails (ROR) - Accounting Project by how...

freelancer.com 26 Aug '12, 7am

Freelancer.com (formerly GetAFreelancer) is the world's largest outsourcing and crowdsourcing marketplace for small busine...

Why Aspiring Programmers Should Learn Ruby on Rails

Why Aspiring Programmers Should Learn Ruby on R...

marketstreettalent.com 23 Aug '12, 12pm

Earlier this week, I wrote about why existing programmers should learn Ruby on Rails, however this wonderful technology is...

Ruby on Rails Developer (Austin, TX) #job

careers.joelonsoftware.com 30 Aug '12, 8pm

Ruby on Rails Developer Ticketbud Austin, TX (relocation offered) ruby-on-rails ruby-on-rails-3 ruby sinatra Job Descripti...

Learn: Ruby on Rails w @CabForward Intro to Advanced class in #Austin is open for reg: < Don't miss out

Learn: Ruby on Rails w @CabForward Intro to Adv...

cospace.co 27 Aug '12, 4pm

classes prepare students for the Advanced lessons. We start by developing a basic understanding of the Ruby language, itse...

Ruby on Rails Tutorial Part 1 - Getting Started

youtube.com 24 Aug '12, 10pm

In this Ruby on Rails Blog Tutorial we'll work on getting a blogging application up and running, learn about the rails dir...

Ruby on Rails Project - oDesk: Looking for an e...

odesk.com 24 Aug '12, 10pm

Looking for an experienced Ruby on Rails Developer for a one month project

Ruby Bits, our new @codeschool course, is out. Been dreaming of this since I first played Rails for Zombies. #fb

Ruby Bits, our new @codeschool course, is out. ...

codeschool.com 27 Aug '12, 4pm

Ruby is a powerful language, but are you using it to it's full potential? In this course we dive into the most powerful fe...

Should I prefer instance methods over class met...

I'm working on a rails application, and I've been pulling functionality out of my rails code and into pure ruby classes in...

.@Fullscreen is still looking for #developers. ...

fullscreen.theresumator.com 24 Aug '12, 8pm

Fullscreen is looking for a Ruby On Rails engineer with social app experience to join our team and grow with an exciting, ...

#AJAX Develop a dating site using Ruby on Rails...

freelancer.com 23 Aug '12, 2pm

Project ID: 2427613 Project Type: Fixed Project Description: Looking for ruby on rails developer to develop a website for ...