Displaying 20 results from an estimated 1000 matches similar to: "beginner question: how do I figure out why an app won't start? (RubyMine)"
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
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 Feb 03
0
Correct way to exclude attributes from json serialization
Hi
I''m using Mongoid and Rails 3, and I want to serialize one of my
mongoid documents to json for publishing via a controller, e.g.
class ReportController < ApplicationController
respond_to :json
def show
report = Report.where(:report_id => params[:id]).first
respond_with report
end
end
This works ok, but pushes out every attribute on the document
2011 May 04
5
rails mongoid
I have a strange problem. Suppose I have a user model with only name
field.
I can add a field with value by creating an instance in mongodb rails
environment.
Example:
class User
include Mongoid::Document
field :name
end
Now in rails console, If you do
user = User.new
user[:name] = "xxxx"
user[:firstname] = "yyyy"
user.save
The record gets created with name and
2011 Aug 04
0
How to integrate wxRuby to RubyMine?
I want to integrate wxRuby with RubyMine IDE so that I could write GUI
apps. Please let me know how to integrate?
--
Posted via http://www.ruby-forum.com/.
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
2011 Nov 17
2
please suggest a web page automation tool
I''ve been trying to get a couple of web automation tools going today
and having a hard time. Seems like everything I try is outdated and
won''t run on my environment. Mechanize seemed like a good one but it
doesn''t want to run:
require ''rubygems''
require ''open-uri''
require ''mechanize''
agent = Mechanize.new
2012 Oct 10
1
Rubymine Install Missing Gems
Hello All,
I am using JRuby in Linux Ubuntu 10.10.
In Rubymine IDE, I am getting as "Install Missing Gems" link. After
clicking on that link, I am getting this error :-
Installing pg (0.14.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
checking for pg_config... yes
Using config values from /usr/bin/pg_config
2009 Dec 10
6
(annoying) question: Netbeans vs Rubymine
Hi,
I''m don''t want to start another post about what''s the best IDE. Am just
considering getting a licence for Rubymine which is 99$ I think. But I don''t
know whether it''s really better than Netbeans. My focus is on BDD with
cucumber, Rspec and Shoulda. Can anyone tell me his/her experience concering
test support in those two IDE''s
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody
I''m currently reading through the Pragmatic Programmers RSpec book, and
I really enjoy it.
But I’m facing some problems because of the fact that the book is
already some years old, I guess. I have installed rvm and use Ruby
1.9.3, and I didn’t really get some Rails code examples to work
properly, so I tried it with a 1.8.7 installation, but there I had some
other problems
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
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
2012 Dec 12
3
Fatal Error during bundle install
Hi I was trying to run bundle install from cmd prmpt but getting the
following error .
ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
C:\Users\sony>D:
D:\>cd SupportBee-Apps
D:\SupportBee-Apps>cd apps
D:\SupportBee-Apps\apps>cd dummy
D:\SupportBee-Apps\apps\dummy>bundle install
Fetching git://github.com/rchampourlier/guard-shotgun.git
Unfortunately, a fatal error has occurred.
2014 Apr 21
0
Facing troubles installing rubymine latest one in vps ubuntu 12.04 64 bit
Hi all,
I have installed Redmine latest one in my vps. I am facing the below error
apt-get install redmine redmine-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libsvn-ruby ruby-rmagick libopenid-ruby
The following NEW packages will be installed:
redmine redmine-mysql
0 upgraded, 2 newly installed, 0 to remove and
2012 Jul 27
7
Getting error while starting server plz help
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/options.rb:32:in
`default_options'': undefi
ned method `write_inheritable_attribute'' for
Rails::Generator::Base:Class (NoMethodError)
from
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:90:in
`<class:Base>''
from
2014 May 22
0
CentOS-announce Digest, Vol 111, Issue 11
Send CentOS-announce mailing list submissions to
centos-announce at centos.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-request at centos.org
You can reach the person managing the list at
centos-announce-owner at centos.org
When
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
2010 Feb 25
0
Bundle install error involving hash range errors
While running "bundle install" on a new Rails3.0.0.beta app on Ubuntu
9.10 / Ruby 1.8.7 with the following line in my Gemfile:
gem "mongoid", :git => "git://github.com/durran/mongoid.git", :branch
=> "prerelease"
I got the following error:
Installing mongoid (2.0.0.pre) from git://github.com/durran/mongoid.git
(at prerelease)
2013 Mar 13
3
Help me about Test-Unit in Ruby on Rails
I''m using RubyMine for developing RoR and i found in RubyMine have Test
file.But I read in rubyforge http://test-unit.rubyforge.org/ have
Test-Unit for RoR.Could you help me about 2 problem:
- how is different between RubyMine Test-Unit and Test-Unit in rubyforge
- how can i run Test-Unit with Test-Unit in rubyforge(test-unit github:
https://github.com/test-unit/test-unit.git)