it seem some code create one nil record, maybe in controller
notice the payment id in console is 37, and in view, you get that record
but not the last one
On Wed, Dec 26, 2012 at 8:29 AM, Jean wrote:
> I have this strange behavior and I don't undertand why. Here is the thing:
>
> I have this
ok, it didn't look like nested methods. But I made to believe that
this:
sum<=square*deviation|a
is exactly the same as this:
sum<=(square*(deviation|(a)))
So if this is true, then still a question remains.
Here's the original context again:
module Functional
def compose(f)
if self.re
I have this strange behavior and I don't undertand why. Here is the thing:
I have this record in my payment model:
1.9.3p286 :019 > u.payment.last
Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE
"payments"."user_id" = 10
=> [#]
As you can see, I have one record for my user
*I Copied this from StackOverflow since I did not get any response there.
There is an update at the end. *
I am not sure why my checkboxes for a has_many through are not saving. This
is a rather complex form (An online application for a language summer
program) so in addition to regular appli
On Tue, Dec 25, 2012 at 10:34 AM, Norbert Melzer wrote:
> Another one is that you really shouldn't use 10.10 any more. 12.04 is the
> latest Ubuntu with Long Term Support.
It might have "Long Term Support" but it also includes "Regular
File System Corruption" :-)
Based on personal experience (
You need to install ruby-Dev and mysql-Dev packages.
sudo apt-get install ruby-Dev mysql-dev
Could also be Devel instead of Dev, not sure about that at the moment.
Also it may be that you have to purge and reinstall ruby after that to get
it working. This part is covered in any ruby with Ubuntu
They probably mean edge rails(the master branch) which might be unstable.
It's completely alright to use the latest stable release of rails, got through
rubygems to develop applications.
--
Dheeraj Kumar
On Tuesday 25 December 2012 at 5:58 PM, rajesh kanna wrote:
> i'm going to create new w
On Tue, Dec 25, 2012 at 6:40 AM, Ashvin Gargave
wrote:
> ERROR: Failed to build gem native extension.
> it give me error :
> An error occurred while installing mysql2 (0.3.11), and Bundler cannot
> continue.
> Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.
I'll bet tha
I am a php programmer, learning ruby on rails
I am using ubuntu 10.10. i am not so fine with linux.
i have installed ruby, gems etc.
I want to make app with using mysql.
I have used *$ rails new clogs_web_app -d mysql* to make app but
the process stops with this statement *Gem::Installer::Exten
i'm going to create new web aplications.
some guys are told dont use latest version..
i dnt know what to do..
why that guys are told dnt use latest version
they are told some gems are not supporting latest version.
--
You received this message because you are subscribed to the Google Groups
includes performs a join, and returns a ActiveRecord::Relation object. Just
call .to_a like Frederick Cheung says, and Dalli will be happy :)
--
Dheeraj Kumar
On Tuesday 25 December 2012 at 9:50 PM, Jordon Bedwell wrote:
> On Tue, Dec 25, 2012 at 5:09 AM, Pavlo Shabat (mailto:pavlo.sha...@gm
On Tue, Dec 25, 2012 at 5:09 AM, Pavlo Shabat wrote:
> You are trying to cache a Ruby object which cannot be serialized to
> memcached.
What is "includes" and what does it return? It should be a String,
Hash ({}), Array ([]), Fixnum (1), Range (1..2) or Float (1.0) for
Dalli to not bitch about Ma
im new one to rails practising rails with sqlite but now it a situation for
me to use oracle with rails i have tried to configure oracle with rails but
is show me the following error
*activerecord oracle_enhanced adapter could not load ruby-oci8 load error*
but i have installed needed gems for c
On Dec 25, 11:09 am, Pavlo Shabat wrote:
> I have such action in my controller:
>
> def my
>
> @user = Ads::User.find current_user.id
>
> @postings = Rails.cache.fetch("@user.postings.includes(:category)") do
>
> @postings = @user.postings.includes(:category)
>
> end
>
+1 for STI, if an artist cannot be a curator.
Roles with CanCan, if an artist can be a curator.
--
Dheeraj Kumar
On Tuesday 25 December 2012 at 5:44 PM, Frederick Cheung wrote:
>
>
> On Dec 24, 11:28 pm, Paul Olivers (http://ruby-forum.com)> wrote:
> > I have 2 distinct types of users (ar
I have such action in my controller:
def my
@user = Ads::User.find current_user.id
@postings = Rails.cache.fetch("@user.postings.includes(:category)") do
@postings = @user.postings.includes(:category)
end
end
I'm trying to cache @postings and get such error:
Mars
On Dec 24, 11:28 pm, Paul Olivers wrote:
> I have 2 distinct types of users (artists and curators) in my system and
> they currently share all associations (eg has_one :portfolio).
> However, a curator shouldn't have a portfolio so I would like to only
> add that association when required. Obvio
17 matches
Mail list logo