[Rails] Re: accessing the changed? method for an overridden attribute - sorry - non question

2013-08-09 Thread tonypm
On Friday, 9 August 2013 18:04:54 UTC+1, tonypm wrote: > I am using rails 2.3, and have overridden an attribute. > > I am building a before_save callback, and would like to check if the > attribute has changed - but can't figure out a way to do this. > > > Sorry - silly Friday afternoon question

Re: [Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Tamara Temple
On Aug 9, 2013, at 11:30 AM, Jordon Bedwell wrote: > On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple > wrote: >> At this stage of the game, it's hard to hear "yer doin it rong" but >> something did go wrong. You should not have received that message if you >> were following the getting starte

[Rails] Duplicating a Paperclip attachment without running processors?

2013-08-09 Thread Walter Lee Davis
I need to duplicate an object that has an attached Paperclip file. This file (depending on its file-type) may have two to four different styles, with separate file-processing stages required for each. Some of these involve transcoding in FFMPEG, so I would really rather not run the processors al

Re: [Rails] Remote form in popover processing as html

2013-08-09 Thread Colin Law
On 9 August 2013 17:12, Thomas Dragsbæk wrote: > Niiice! that did it, thanks! I think it might be even nicer to setup @event in the controller. It is generally better to keep such code out of the view. Colin -- You received this message because you are subscribed to the Google Groups "Rub

[Rails] Dynamically loaded assets in Rails 4 and Turbolinks

2013-08-09 Thread Seth Portman
I am working on a Rails 4 app in application.html.erb I have the following code ... <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= yield :head %> <%= csrf_meta_tags %> What this does is allows me to load certain assets dependin

[Rails] accessing the changed? method for an overridden attribute

2013-08-09 Thread tonypm
I am using rails 2.3, and have overridden an attribute. I am building a before_save callback, and would like to check if the attribute has changed - but can't figure out a way to do this. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

Re: [Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Jordon Bedwell
On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple wrote: > At this stage of the game, it's hard to hear "yer doin it rong" but something > did go wrong. You should not have received that message if you were following > the getting started tutorial from the beginning. If you were doing other > thin

Re: [Rails] Remote form in popover processing as html

2013-08-09 Thread Thomas Dragsbæk
Niiice! that did it, thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, sen

Re: [Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Tamara Temple
On Aug 7, 2013, at 11:28 AM, Jenson Lu wrote: > Hi people, > > I need some help here. I'm new to ROR, and is following the guideline on > "Getting started with rails". The inputs have been accurate and are running > well until section: > "5.1 Laying down the ground word". > While navigating

Re: [Rails] Remote form in popover processing as html

2013-08-09 Thread Tamara Temple
On Aug 8, 2013, at 11:54 AM, Thomas Dragsbæk wrote: > Im trying to submit a rails remote form in a bootstrap popover, but it keeps > processing as html. There are no js errors, controller responds to js and i > have a create.js.erb. Can someone please point me to the problem? > > Below is the

Re: [Rails] Images with fingerprinting

2013-08-09 Thread Tamara Temple
On Aug 8, 2013, at 2:08 PM, Nick Khamis wrote: > Looking through the asset pipeline documentation, I was able to make > everything > work as expected. Really nice!! However, not for images that we are loading > using > a variable (i.e., wine.picture) which basically resolves to (bold_nine.jpg)

Re: [Rails] Unable to connect Mysql2 or Sqlite3 on windows

2013-08-09 Thread Colin Law
On 7 August 2013 21:09, Alexandre Alves wrote: > Hi every body. > I would like to know if this problem is occurs only with me? > I was unable to get Mysql2 ou Sqlite3 working with Ruby and rails. > -ruby 2.0.0p247 (2013-06-27) [i386-mingw32] > -Rails 4.0.0. > I tried several tutorials but no one

Re: [Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Colin Law
On 9 August 2013 11:38, Dheeraj Kumar wrote: > > Why don't you do what the error says? > > run "rake db:migrate RAILS_ENV=development" Though you won't normally need RAILS_ENV=development as it should default to that. First have a look in db/migrate and see if you have accidentally created a new

[Rails] Re: Order on join model

2013-08-09 Thread Linus Pettersson
Ok, this seem to work fine @user.liked_photos.order("likes.created_at DESC") Den fredagen den 9:e augusti 2013 kl. 10:55:39 UTC+2 skrev Linus Pettersson: > > Hi > > I have three models, User, Like and Photo. > A User can like many Photos and a Photo can have many Likers. > > In my User model I h

Re: [Rails] Unable to connect Mysql2 or Sqlite3 on windows

2013-08-09 Thread Dheeraj Kumar
Getting good support for rails in windows is difficult. Why don't you switch to Ubuntu or OSX? -- Dheeraj Kumar On Thursday 8 August 2013 at 1:39 AM, Alexandre Alves wrote: > Hi every body. > I would like to know if this problem is occurs only with me? > I was unable to get Mysql2 ou Sqlite3

Re: [Rails] Rails 4 , how to validate form with remote tag on client side?

2013-08-09 Thread Dheeraj Kumar
Use client_side_validations -- Dheeraj Kumar On Thursday 8 August 2013 at 2:07 PM, Дмитрий Татаркин wrote: > I need pure javascript validation for ajax form. Rails 4 docs lacks in this > part. > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rail

Re: [Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Dheeraj Kumar
Why don't you do what the error says? run "rake db:migrate RAILS_ENV=development" -- Dheeraj Kumar On Wednesday 7 August 2013 at 9:58 PM, Jenson Lu wrote: > Hi people, > > I need some help here. I'm new to ROR, and is following the guideline on > "Getting started with rails". The inputs ha

Re: [Rails] other css design framework like bootstrap

2013-08-09 Thread David Gustafson
This one is based on sass http://foundation.zurb.com/docs/ On Thu, Aug 8, 2013 at 1:00 PM, mukul saharia wrote: > hello friends, > i am using twitter bootstrap css designing framwork.. is there other > framework like bootstrap.. please suggest. > > -- > You received this message because you

Re: [Rails] other css design framework like bootstrap

2013-08-09 Thread Timothy Venn
Hi, Try Zurb foundation http://foundation.zurb.com/docs/rails.html Regards Tim On Thu, Aug 8, 2013 at 10:00 PM, mukul saharia wrote: > hello friends, > i am using twitter bootstrap css designing framwork.. is there other > framework like bootstrap.. please suggest. > > -- > You received

[Rails] Remote form in popover processing as html

2013-08-09 Thread Thomas Dragsbæk
Im trying to submit a rails remote form in a bootstrap popover, but it keeps processing as html. There are no js errors, controller responds to js and i have a create.js.erb. Can someone please point me to the problem? Below is the content of my popover. Users have to options when submitting a

[Rails] Re: Disable Rails caching in test environment?

2013-08-09 Thread Joshua Pinter
You can also use the following in your environment configuration: config.cache_store = :null_store Cheers, JP On Thursday, 2 September 2010 07:20:30 UTC-6, Tony Primerano wrote: > > Is there a way to make Rails.cache.fetch always execute the code block > in the test environment? (disable cac

[Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Jenson Lu
Hi people, I need some help here. I'm new to ROR, and is following the guideline on "Getting started with rails". The inputs have been accurate and are running well until section: "5.1 Laying down the ground word"*. *While navigating to http://localhost:3000/posts/new the error message display

[Rails] Unable to connect Mysql2 or Sqlite3 on windows

2013-08-09 Thread Alexandre Alves
Hi every body. I would like to know if this problem is occurs only with me? I was unable to get Mysql2 ou Sqlite3 working with Ruby and rails. -ruby 2.0.0p247 (2013-06-27) [i386-mingw32] -Rails 4.0.0. I tried several tutorials but no one work for me. See same examples, for sqlite3: https://githu

[Rails] Rails 4 , how to validate form with remote tag on client side?

2013-08-09 Thread Дмитрий Татаркин
I need pure javascript validation for ajax form. Rails 4 docs lacks in this part. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubs

[Rails] Order on join model

2013-08-09 Thread Linus Pettersson
Hi I have three models, User, Like and Photo. A User can like many Photos and a Photo can have many Likers. In my User model I have: has_many :likes, foreign_key: "liker_id", dependent: :destroy has_many :liked_photos, through: :likes Like model: belongs_to :liker, class_name: "User" belongs_to