Displaying 20 results from an estimated 30000 matches similar to: "Rails 4.0 Example app"
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and
nested attributes.
class ControllerAction < ActiveRecord::Base
has_many :interactions, dependent: :destroy
has_many :roles, through: :interactions
scope :controllers, lambda {|name| where("controller_name_id = ?",
name)}
scope :actions, lambda {|name| where("action_name_id =
2013 Oct 23
9
rails generate scaffold - ERROR
Hi,
I just installed ROR using the rvm using these instructions:
http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
Using Ubuntu 12 on VirtualBox
I''m trying to create a demo_app
rails generate scaffold User name:string email:string
gives me this error:
--
/home/natmanu/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in
`autodetect'': Could not
2013 Mar 11
7
Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS
I am having a problem installing Ruby 2.0.0-p0 using rbenv install on
Ubuntu 12.04.2 LTS. I have clean version of Ubuntu 12.04.2 LTS running on
Virtualbox.
I am getting this error and the build is failing. I think I read that the
new RubyGems requires https.
I have tried rbenv install --with-openssl-dir=/usr/bin, but with no success.
The Ruby openssl extension was not compiled. Missing
2013 Jun 02
16
Ruby 2.0 is running, but Rails 4 doesn't see it.
What am I doing wrong??
****@ubuntu:~/ruby/things_i_bought$ rake db:migrate
Rails 4 prefers to run on Ruby 2.0.
You''re running
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
Please upgrade to Ruby 1.9.3 or newer to continue.
****@ubuntu:~/ruby/things_i_bought$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]
****@ubuntu:~/ruby/things_i_bought$ rvm
2013 Oct 16
1
Issue with Deploying a Rails app on VPS - cannot load such file -- unicorn/launcher
I am trying to deploy a rails application to a digitalocean VPS droplet. I
have the following setup Ruby on Rails on Ubuntu 12.10 (Nginx + Unicorn). I
have installed Ruby ruby-2.0.0-p247 and rails Rails 4.0.0 via rvm but when
I try to restart Unicorn I get the following error.
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems
/core_ext/kernel_require.rb:45:in
2013 Jan 14
9
Need help even generating a new app
I''m having trouble even installing new rails apps. I get to the Bundle
run, and it errors on Json, here''s what my error says. I''m new to ALL of
this, including Terminal commands, etc. Hope someone can help me out.
Runs the Bundler.... then I error out at this:
"Installing json (1.7.6) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to
2013 May 31
22
accidentally created a rails app in the home folder
Im a new user - I just installed rails, following directions here:
http://rubyonrails.org/download
however, when it came time to make a rails new path/etc/etc I get this
message:
Can''t initialize a new Rails application within the directory of
another, please change to a non-Rails directory first.
The only complication during the download was that I had to upgrade from
version 1.8.6 to
2012 Dec 03
10
Starting rails server problem
Still fairly new to Ruby and Rails in general and trying to figure out
how to address this error. I recently migrated to a new computer and
now I get this error message when I try to start the rails server.
-bash: /Users/user1/.rvm/gems/ruby-1.9.3-p125/bin/rails:
/Users/user/.rvm/rubies/ruby-1.9.3-p125/bin/ruby: bad interpreter: No
such file or directory
I know what the problem is and
2012 Sep 18
13
pg gem error
gem install pg give the following error, please help how can i solve this
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/home/saravanan/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for
2013 May 29
5
Can't setup Rails with RVM in ubuntu 12.04
I''m doing setu Ruby on Rails with RVM.
I had setup ruby 1.9.3 p429 and RVM,RubyGem... succesfully
But I can''t setup Rails with command : gem install rails because of
error:
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rails requires activesupport (=
3.2.13), actionpack (= 3.2.13), activerecord (= 3.2.13), activeresource
(= 3.2.13),
2013 Jan 03
8
How to Install Ruby and Rails
I want to install Ruby 1.8.7 and Rails 2.8.3,i am using ubuntu 11. Thank
you
--
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 this group, send email to
2013 May 12
15
Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?
Hi Group,
I''ve got mysql database installed and the server running on a Mac Pro with latest mountain lion setup 10.8.3.
I''m able to use mysql tools like mysql, mysqladmin to converse with it. :}
I use RVM''s scripts to fetch gems.
I''ve visited RVM''s website but their advise to get "mysql gem loaded" does the same thing as below aborted
2012 Nov 09
8
method conditional option pattern
When I have this pattern
sign_me(@user, :event => :authentication, :subdomain => subdomain)
how can I write it to avoid sending the :subdomain option if subdomain.nil?
( if possible ..)
sign_me(@user, :event => :authentication #?, :subdomain =>
subdomain unless subdomain.nil? )
--
You received this message because you are subscribed to the Google Groups
2012 Oct 17
6
NoMethodError (undefined method `service_options' for nil:NilClass)
hi i am using rails 2.3.4 and i am facing "no method error"
there is possibility to not find method but my question is - is there
possibility to error occurred because of empty table? or error in another
controller or helper?
error trace:
Processing QuoteRequestsController#create (for 127.0.0.1 at 2012-10-17
16:07:34) [POST]
Parameters:
2013 May 20
6
MapServer setup with rails in ubuntu 12.04
Hi i have one rails application in which i need to setup the mapserver i
have added the gem https://github.com/sourcepole/ruby_mapscript
but while running the command
require "rubygems"
require "ruby_mapscript"
include Mapscript
it use to tell me
LoadError (cannot load such file -- mapscript):
can anybudy help me on this
Thanks in Advance
Arvind
--
You received
2013 Aug 29
3
ruby connect oracle problem
Hello folks.
I''m new in Ruby also ROR.
I installed oracle intant client and test it it works fine. Now I wanna
connect to oracle db. But its got some error. like this
*custom_require.rb:36:in `require'': cannot load such file -- oci8
(LoadError)*
my code is here.
require ''oci8''
oci =
2013 Apr 27
3
where exactly are gems?
when you add a gem to the Gemfile and then run bundle install, where
does the command look for the gem? If you had "gem ''rails'', :git =>
''github.com/rails/rails.git", I assume it would update your
system .rvm gems directory with the latest github commits. But what is
the default repository that bundler looks for gems?
--
You received this message because
2013 Nov 26
2
'$ rake db:create' don't work!
Hey guys,
I''m new to learning RoR and I try to do a database with mysql and I
have a problem.
First I create a a folder in my desktop and after with command in the
terminal on Mac Os Mavericks I create a project:
rails new vota_prato -d mysql
after I will try to create a database with this command:
$ rake db:create
and I have this error:
MacBook-Pro-de-Romenig:vota_prato romenig$ rake
2013 Feb 17
5
Where do Gems Live (e.g. CKEditor)
I''m a Rails newbie and I have added the CKEditor Gem which is working
okay. To configure the gem though, you have to edit the config file,
which is also working when I do that. However, when I push to github and
pull to my other computer, the config file is not changed.
This lead me to the following broader question: when you use a gem,
where does the code go and how can you make sure it
2013 Feb 14
4
Struggling with Jruby Rails + jdbc driver
hi all,
I am having a hard time trying to find out what''s wrong with my setup. It
used to work smoothly until I decided out of the blue to do a selfupdate
and upgrade outdated on MacPort, then things started going south very
quickily.
Since MacPort kinda broke, I pull it all out and re-install the ports I
have before, which went pretty smoothly. Then to my surprise any command I