Report
Question
How can I get the class name from an ActiveRecord object? I have: result = User.find(1) I tried: result.class # => User(id: integer, name: string ...) result.to_s # => #<User:0x3d07cdc>" I need only the class name, in a string (User in this case). Is there a method for ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
3 Answer 2 views

Report
Question
I have some fonts being configured in my Scss file like so: @font-face { font-family: 'Icomoon'; src: asset-url('icoMoon.eot?#iefix', font) format('embedded-opentype'), asset-url('icoMoon.woff', font) format('woff'), asset-url('icoMoon.ttf', font) format('truetype'), ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
11 Answer 1 views

Report
Question
I’m working on a very basic shopping cart system. I have a table items that has a column price of type integer. I’m having trouble displaying the price value in my views for prices that include both Euros and cents. ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
11 Answer 1 views

Report
Question
This is more of a “why do things work this way” question rather than a “I don’t know how to do this” question… So the gospel on pulling associated records that you know you’re going to use is to use :include ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
8 Answer 2 views

Report
Question
Is there an alternative to update_attributes that does not save the record? So I could do something like: @car = Car.new(:make => 'GMC') #other processing @car.update_attributes(:model => 'Sierra', :year => "2012", :looks => "Super Sexy, wanna make love to it") #other processing @car.save BTW, I know I ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
4 Answer 1 views

Report
Question
I was wondering how to add custom configuration variables to a rails application and how to access them in the controller, for e.g I wanna be able to define an upload_directory in the configuration files say development.rb and be able ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
13 Answer 3 views