similar to: include MongoMapper::EmbeddedDocument

Displaying 20 results from an estimated 30000 matches similar to: "include MongoMapper::EmbeddedDocument"

2011 Nov 09
3
Mongo adapter
I have setup mongo database and want to know which one would be best adapter ( mongo_mapper , mongoid, dm-mongo-adapter ) in terms of Associations, include option for eager-loading . -- Regards Mukesh Paras Singh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2012 Aug 19
0
Unsuccessful with using mongodb with rails
I have had a frustrating time trying to get mongodb to work with Rails (works just fine with a plain Ruby app). cannot load such file -- mongo The error is traced to the code line <requires ''Mongo''>. bundle initialize shows I have it all. Any ideas? Thanks, Shiv $ bundle install Using rake (9.2.2)
2011 Aug 05
5
Best Mongo Framework to work with Rails
Hi all, Wanted to hear your opinions about the currently best option for mongo with Rails. Thank you all in advance, Vasco Andrade e Silva -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2010 Jan 25
3
Dynamic attributes!
I want to create a general model ''Product'' that I will be able to store several attributes in it. For example the attributes :id :name :description are pretty stantard. So each product will have this attributes. However, I wanted to know if it is possible to create dynamic attributes. In the case of a cell phone device I might want to store the IMEI of the phone, this
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there, I''m solving the problem about the plugin Magick. In my app in Gemfile I''ve follwoing: require ''rubygems'' require ''mongo'' require ''RMagick'' include Magick and in a model Files: class Files def self.save(upload) ... img = Magick::Image.read(''public/data/nature6.jpg'').first end end
2011 Mar 24
2
please help me run hello world in net bean ide
-- am really frustrated now Rahul -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options,
2013 Jul 13
4
?include binstubs in version control
I am using rbenv. Just a quick question: Is it good practice to include binstubs in version control? I have looked at the binstubs created; they look pretty harmless. -- 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
2012 Oct 13
2
How to include html tag inside rails label tag
Hello pls help me, below is my code <label style="width:175px;text_align:left;float:left;font-weight:bold;font-size:13px;">Group <font size="1" color="red">*</font></label> How to write this html code inside label_tag of rails ???? am clear till <font size="1" color="red">*</font>...
2010 Oct 15
2
include ActionView::Helpers in Rails 3?
How do you do the equivalent of: module MyLibrary include ActionView::Helpers::AssetTagHelper end ...in Rails 3? I''m trying to upgrade my app from 2.3.9 to 3.0.1 and I have some stuff in /lib that needs to include these helpers from ActionView. It works fine in 2.3.x, but in 3.x it''s giving me the error: undefined local variable or method `config'' One of the
2010 Jul 04
1
Rails 3: ActiveRecord .include not working
Really no idea what''s up... class Auction < ActiveRecord::Base has_and_belongs_to_many :categories end class Category < ActiveRecord::Base has_and_belongs_to_many :auctions default_scope order(''title'') scope :active, where(:active => true) end class CategoriesController < ApplicationController respond_to :html, :json # GET /categories/:id
2012 Mar 08
1
Include Advanced
Hi, As I can do Include with parameters?? Example Modelo.find(:all,:include => [otroModelo(param,param)]) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from
2010 Feb 04
6
Fastes database server for...
Hi, I''m currently building a small rails application that needs to store web traffic information. Similar to google analytics and clicky. (but simpler) It needs to store refer domains and visitors. Integration goes through a small javascript snippet. My question is: What database server is the fastest and should I use for this app? I was thinking about SQLlite. Thanks for your time,
2010 Apr 01
2
paper clip plugin error
coming this error in my paper clilp plugin m getting this error * Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ hrithik_roshan1,3756,1.jpg is not recognized by the ''identify'' command. * Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ hrithik_roshan1,3756,1.jpg is not recognized by the ''identify'' command. * Photo C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/
2012 Sep 28
1
How to Include Associations in #as_json
Hi, Does anyone know how to include nested associations when overriding a model''s #as_json method? Below is my attempt to include direct and nested associations. NOTE: "office" is a direct association, "company" is nested association via "office". I''d like both included in the generated json output. def as_json(options={}) super(:include
2010 Oct 27
1
Does Ruby 1.9.2 include ftools?
If I run irb, and do this: require ''ftools'' The response is: LoadError: no such file to load -- ftools I see around that 1.9.1 did not include ftools but no mention of 1.9.2. Looking at the Ruby docs (http://www.ruby-doc.org/stdlib/), ftools is still there. Any ideas? Thanks, David -- You received this message because you are subscribed to the Google Groups "Ruby on
2010 Apr 10
5
Rendering a Partial as an Alternative
Suppose that I want to have a block of default content within a template that is replaced with the content of a specific partial only if that partial exists. Obviously there is the brute force approach of simply rendering the default content unless the relevant partial file exists in which case the relevant partial is rendered instead. I suspect that there may be a more elegant way to skin this
2010 Mar 24
3
How to include a ruby gem environment.rb file?
I''m doing a Web Service Based on a page I found (http://blog.complitech.net/web-services-basics-ruby-on-rails/) using the rails version 2.3.4, the web service is already working, but when working on a version Previous: RAILS_GEM_VERSION = ''2 .0.2 ''unless defined? RAILS_GEM_VERSION I can not run the service. On the previous page, there''s a part that says: 3)
2010 Nov 19
0
how to include view helpers in both action_controller and action_mailer templates (rails 3)
There''s some terse documentation that helpers can be shared between action_controller and action_mailer, but I have yet to find an example of how this is done. Right now, I''m trying to use a "markdown" method in the view templates for both. I have put the method in the application helper (app/helpers/application_helper.rb). It works in the view templates called from
2010 Dec 21
0
liquid include error please help
Hi All, I have been trying to get my following code working for almost 4 days and glad if you could help me. Basically what I want to do is to use liquid ''include'' tag I''m getting this error Liquid error: No such template ''test'' my code is as follows in my app/views/page/index.erb <% file_system =
2014 Feb 22
0
Validates inclusion of include fails at plugin.
Hello, MyModel.rb, TYPES = { "type1" => 1 , "type2" => 2, "type3" => 3 }.freeze validates_inclusion_of :my_type, :in => TYPES.keys --------------------------------------- MyModelPatch.rb, base.send(:remove_const, :TYPES) base._validators[:my_type].reject!{ |validator| validator if validator.is_a? ActiveModel::Validations::InclusionValidator } TYPES =