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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
25 matches
Mail list logo