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
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:
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
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
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
This one is based on sass
http://foundation.zurb.com/docs/
On Thu, Aug 8, 2013 at 1:00 PM, mukul saharia mukul.saha...@gmail.comwrote:
hello friends,
i am using twitter bootstrap css designing framwork.. is there other
framework like bootstrap.. please suggest.
--
You received this
Hi,
Try Zurb foundation
http://foundation.zurb.com/docs/rails.html
Regards
Tim
On Thu, Aug 8, 2013 at 10:00 PM, mukul saharia mukul.saha...@gmail.comwrote:
hello friends,
i am using twitter bootstrap css designing framwork.. is there other
framework like bootstrap.. please suggest.
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 Rails:
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 have been
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
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 have:
On 9 August 2013 11:38, Dheeraj Kumar a.dheeraj.ku...@gmail.com 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
On 7 August 2013 21:09, Alexandre Alves ale.asi...@gmail.com 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
On Aug 8, 2013, at 2:08 PM, Nick Khamis sym...@gmail.com 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
On Aug 8, 2013, at 11:54 AM, Thomas Dragsbæk tdragsb...@gmail.com 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?
On Aug 7, 2013, at 11:28 AM, Jenson Lu jenson@gmail.com 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
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, send
On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple tamouse.li...@gmail.com 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
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.
I am working on a Rails 4 app in application.html.erb I have the following
code
head
title.../title
%= javascript_include_tag application, data-turbolinks-track =
true %
%= yield :head %
%= csrf_meta_tags %
/head
What this does is allows me to load certain
On 9 August 2013 17:12, Thomas Dragsbæk tdragsb...@gmail.com 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
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
On Aug 9, 2013, at 11:30 AM, Jordon Bedwell envyge...@gmail.com wrote:
On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple tamouse.li...@gmail.com
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
24 matches
Mail list logo