Displaying 20 results from an estimated 2000 matches similar to: "rails mongoid"
2011 Dec 06
1
mongodb topic in rails
Hi
I use mongoid for rails application
and I try to do
@users = User.where("first_name = ? OR last_name = ? OR type = ?",
firstname, lastname, usertype)
but I am getting error
but when i put:
@users = User.where(:first_name => firstname, :last_name => lastname,
:type => usertype).all
the program run successfully
but i need OR to execute in mongodb
Also I need sql LIKE to
2012 Jan 22
3
Using Mongoid with ActiveRecord
I''m trying to use mongodb and postgresql simultaneously with Rails
3.1. I believe I have everything set up correctly.
What I''m interested in knowing is how to get rails to flip-flop back-
and-forth between mongoid and activerecord.
For example, if I want to generate an ActiveRecord model after using
mongoid, rails automatically defaults to the Mongoid gem.
> rails g model
2011 May 08
0
Mongoid rails 3
Hi,
I am using mongoid, rails, mongohq.
I have to tables Category and SubCategory
Category references_many :subcategories
SubCategory referenced_in :category
Now I have a form in view. In view, when user chooses a category, an
ajax request is made to get dependent subcategories. But problem is, it
is returning empty array in response(this is using mongohq). It is
working normally as expected
2010 Jun 15
3
RoutingError
hi, can anyone help me. i want to create an url to invoke create action
of a controller. routes.rb has the routes. But i am getting error at
line 23. i have @user variable.
user_contact_path(@user.id)
I want generate url as : users/3/contacts to invoke contacts
controller''s create action
---------------------------------------------------------------------------------
2011 Jul 04
2
when use mongoid , Model.count can't work.
Hi, when i use mongoid to get the count of model named "User", I met a
error :
irb(main):001:0> User.count
ArgumentError: wrong number of arguments (1 for 0)
from /var/lib/gems/1.8/gems/mongoid-2.0.2/lib/mongoid/
cursor.rb:37:in `count''
from /var/lib/gems/1.8/gems/mongoid-2.0.2/lib/mongoid/
cursor.rb:37:in `send''
from
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
2009 Sep 26
3
how to pass value to method in controller
how to pass value to method in controller using button_to_remote
button_to_remote ''check avaliability'',
:url => { :action => ''check_for_unique_login'', :login =>
@user.login}
above code is not working.
--
Posted via http://www.ruby-forum.com/.
2013 Oct 23
2
how is mongoid syntax implemented ?
In mongoid, a ORM mapped database object is like below. The part "type:
String" seems to me to not fit into any standard ruby syntax and I was
curious how does mongoid implement that ?
class Step
include Mongoid::Document
field :Label, type: String
field :Descript, type: String
field :ErrorText, type: String
embedded_in :step_data
end
--
You received this message
2012 Jun 12
2
how to connect rails app using monodb
hi all
i ve installed monodb this is the first time ive installed it and don''t
have any idea how to use it. previously ive used MYSQL for my apps. now i
want to use monodb . can any one help me out how to use monodb . does it
have any interface just as MYSQL. as there is no yml file needed how do i
connect my app
thanks in advance
--
You received this message because you
2009 May 12
2
rails 2.3.2 is not generating environment.rb properly
problem: rails 2.3.2 is not generating
config.action_controller.session_store = :active_record_store in
environment.rb
this is the code in environment.rb
---------------------------------------------------------------------------
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION =
2011 Jun 09
2
nginx + passenger + mongoid
When I set the rails_env to production in nginx.conf I get:
Error message:
db_name must be a string or symbol
--
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
2014 Mar 10
0
Mongoid : bson namespace error
Hello All,
I had been trying to work on Rails 4 and Mongoid gem.
The following are the versions I had installed:
bson-2.2.1
mongoid-3.1.6
After installing and trying to run "rails generate" command. It is failing
with NameSpace error for BSON::ByteBuffer.
It is trying to connect to mongodb server initially and getting successful.
Post that it is failing with the following
2002 Sep 13
1
Samba 2.23 ACL support ?
Hi,
I am evaluating samba with RH 7.3 in a test environment and supposed to go
live by end of Sep02, hopefully.
I will be replacing file and print server first in a environment of more
than 1500 users.
I have been reading through massive docs and trying to find out the exact
strategy to shoot at. In doing so i have achieved some success, but i
definately need further assistance.
Apologies, if I
2010 Sep 23
0
rspec problems mocking classes based on mongoid
I am getting errors when running my rspecs.
My project uses rails 3, mongoid, factory_girl, rspec 2.0.0.beta.22,
rspec-mocs, etc
http://pastebin.com/raw.php?i=WkaGiFag
Getting: Failure/Error: @product = assign(:product,
stub_model(Product, undefined method `to_sym'' for nil:NilClass
I''m pretty sure stub_model has no clue on how to handle objects based
on mongoid.
Any ideas?
2018 Oct 01
2
Authenticate users using their firstname
> On 01 October 2018 at 15:19 Steffen Kaiser <skdovecot at inf.h-brs.de> wrote:
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, 29 Sep 2018, Fady AL HAYALI wrote:
>
> > I'm setting up a Postfic and Dovecot with LDAP email server. My users in LDAP is like this:
> >
> > dn: uid=firstname,ou=People,dc=domain,dc=com
> >
2018 Sep 29
3
Authenticate users using their firstname
Hi,
I'm setting up a Postfic and Dovecot with LDAP email server. My users in LDAP is like this:
dn: uid=firstname,ou=People,dc=domain,dc=com
uid: firstname
uidNumber: 4025
gidNumber: 4025
givenName: firstname
objectClass: top
objectClass: person
objectClass: posixAccount
objectClass: shadowAccount
objectClass: organizationalPerson
objectClass:
2018 Oct 01
1
Authenticate users using their firstname
On Mon, Oct 01, 2018 at 11:25:48PM +0200, Admin wrote:
>
>
> Von unterwegs gesendet
>
> > Am 01.10.2018 um 18:27 schrieb Aki Tuomi <aki.tuomi at open-xchange.com>:
> >
> >
> >> On 01 October 2018 at 15:19 Steffen Kaiser <skdovecot at inf.h-brs.de> wrote:
> >>
> >>
> >> -----BEGIN PGP SIGNED MESSAGE-----
>
2015 Jan 19
1
dsadd doesn't work correct
Hi together,
I installed samba 4 on a server with Debian-Wheezy-OS. Everything seems
to work fine. I can add a user with RSAT. The user is added to the AD,
the profile is stored in the server-profile-path and homepath can be
accessed.
I have to import about 400 datasets to the AD. Therefore I want to use
the commandlinetool dsadd. With this tool I can import datasets, which I
can see with RSAT.
2004 Oct 23
1
login with alias
Hi all,
i'm setting up mail server and here is the question:
if, for example "firstname.lastname at domain.com" is e-mail address, then
how can i setup login as "firstname.lastname" and "password" not only
"firstname".
Of course, users want all things simple. But i don't want to use login
names longer than 8 chars.
Any ideas? Or should i try
2011 Mar 14
2
how to create a form using ruby on rails
*since i''m totally new to this technology , im facing lots
of difficulties here.*
*
*
*i want to create a form with few fields which shud be connected to mysql
database using ruby on rails. can anyone help me with this difficulty?*
*
*
*thanks..*
*
*
*regards *
*
*
*mandrekar salim*
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: