Displaying 20 results from an estimated 20000 matches similar to: "simple home_url question"
2010 Jan 25
15
database design question: building features
I am trying to decide between two different database architectures for
an application to manage properties. For capturing the property
features, I have two options: a single model/table with all the features
as fields, or a set of joined models - property, feature, feature data.
(see attached ERD diagram)
OPTION A
Properties
name
address
has_pool
has_doorman
has_etc. (a bunch of values, not all
2011 Mar 01
11
Did rails or shoulda go insane on the inflection of 'taxes'?
I have a model ''xp_jurisdiction_taxes'' which rails (3) created correctly.
Another model ''xp_jurisdiction_states'' has many :xp_jurisdiction_taxes.
In my spec I am using a shoulda helper to test the association but get the
following error. BTW, greped the whole project just in case and the string
''taxi'' exists nowhere.
1)
2009 Dec 13
20
Need help...NameError in InteractController#add_to_cart
Hi,I am developing a web app and am following the text-Agile web development.....Each time I click my "add to cart" button" i always get the page below:I have double checked to see if i have errors in my code,there was none,please what do i need to do to proceed?
NameError in InteractController#add_to_cartundefined local variable or method `find_cart'' for
2008 Aug 30
3
Working with sessions in beast forum
Hey,
I''m designing an app which displays the events near a user in RoR. I''m
using the beat forum to facilitate user management/sessions/etc. I''ve
edited the sessions table in the Beast database to contain a
"session_location" value and what I''d like to do is to set this to the
users location when they log in. This would allow them to change their
2011 Jun 12
3
Problem with undefined variable current_user
Hi everyone,
I''m working through the tutorial at the following link and attempting to
customise/adapt the lessons for my own slightly different application.
Link:
Ruby on Rails Tutorial: Learn Rails by Example | Ruby on Rails 3
Tutorial book and screencasts | by Michael Hartl
<http://ruby.railstutorial.org/ruby-on-rails-tutorial-book>
I''m currently trying to work
2013 Aug 27
11
Why NaN.class throws NameError ?
Here is my sample code:
class Foo
Bar = 10
end
Foo::Bar # => 10
Foo::Bar.class # => Fixnum
10.class # => Fixnum
Float::NAN # => NaN
Float::NAN.class # => Float
NaN.class
# uninitialized constant NaN (NameError)
--
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
2011 Jul 04
2
ruby and rails wont work even they're already installed
mongskie@mongskie-os:~$ gem
/usr/bin/gem:4: undefined method `manage_gems'' for Gem:Module
(NoMethodError)
mongskie@mongskie-os:~$ rails
/usr/lib/ruby/1.8/active_support/dependencies.rb:55: uninitialized
constant ActiveSupport::Dependencies::Mutex (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require''
from
2013 Jun 21
7
IRB help
I''m new to Ruby. I installed Rails on Windows 8.
When I type mkdir in IRB, I''m getting this. I tried running the IRB as
administrator too, and still get the same result
irb(main):001:0> mkdir lesson2
NameError: undefined local variable or method `lesson2'' for main:Object
from (irb):1
from C:/RailsInstaller/Ruby1.9.3/bin/irb:12:in
2010 Jun 10
9
Rails3 beta4 + Ruby 1.9
When I try rails console using Rails3 beta4 and Ruby 1.9.1-p378 I
cannot save a record:
> rails console
Loading development environment (Rails 3.0.0.beta4)
ruby-1.9.1-p378 > g = Game.new
=> #<Game id: nil, player_id: nil, versus_id: nil, finished: nil,
created_at: nil, updated_at: nil>
ruby-1.9.1-p378 > g.save
NameError: undefined method `<=>'' for class
2012 Jan 21
16
Installing rails on Ubuntu
Hello, I''m trying to install the rails on ubuntu 11.10, but when I put
the command
felipe@Felipe:~/Downloads/rubygems-1.8.15$ sudo gem install rails
--no-r1 --no-rdoc
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
felipe@Felipe:~/Downloads/rubygems-1.8.15$
2010 Feb 20
2
Extending Rails
Hi,
I am not sure how to extend Rails. I want to write a class where I can
Access my Models, like "User.all".
I tried to add a class in the lib/ folder but then ruby complains that
e.g. "User.all" with "NameError: uninitialized constant "
Is there a way to inherit my Rails functionality in a ruby class in
the /lib folder? Or am I going in the conplete wrong
2012 Oct 26
7
How to use Ajax with rails ?
Hi all,
Can any one tell me how to use Ajax with Rails.
Send me quick start up link and videos.
Thanks
Regards
Fahim Babar PAtel
--
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
2010 Dec 03
2
Rails 3 console ...
In the console
to check my paths, I used to write ( In Rails 2)
include ActionController::UrlWriter
then I could test my paths : new_project_path , ....
but now in Rails 3
include ActionController::UrlWriter
gives an error
NameError: uninitialized constant ActionController::UrlWriter
sure something changed, any other additional include needed ?
thanks fyh
--
You received this message
2013 Mar 20
2
Problem With Unicorn
Hello All,
I deployed my application in the local server and i''m using unicorn and
nginx. I tried to run ''bundle exec unicorn_rails'' but it is showing ''ERROR:
Gem bundler is not installed, run `gem install bundler` first.''. even if I
run gem install bundler the bundler getting installed, But it is showing
the same error again i.e. Gem bundler is not
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
Hello,
Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to test,
if self.create method can take more than two arguments. But, when I try to
run my test. It showed
*PdfHelper Should have two arguments
Failure/Error:
create_pdf.should_receive(object,template).with(user,file)
NameError:
undefined local variable or method `create_pdf'' for
2010 Aug 13
5
"uninitialized constant" Error for CalendarHelpper
After installing calendar_helper-0.2.3 gem, application using
CalendarHelper works fine. Then I tried to test using rake command which
gave me the following error.
Why does these messages appear evenif the application owrks fine.
------------------------------ Error Messags
--------------------------------------
/usr/local/jruby-1.5.1/bin/jruby -I"lib:test"
2011 Sep 08
4
TCPServer in 1.9.2
Hi. First post in this group and I hope someone can help.
I am trying to teach myself Ruby with a long-term goal of doing some
web development using Ruby on Rails.
Note: version
C:\rails\hello>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
I have been going through Jeremy McAnally''s book "Mr. Neighborly’s
Humble Little Ruby Book" and there is a section in chapter 5
2011 Mar 17
7
Beta Invitation in Rails 3, little problem
INVITATION BETA EMAIL
I have in the email that the app send to friend''s email address
------------------------
You are invited to ExampleApp.com click below to signup
http://localhost:3000/signup.efweiuvwnjernfwkefwebhsohj
------------------------
But I have a dot in the url beteween http://localhost:3000 and the token
I wish the following url
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until
June 26 does not work any longer. It is used under Ubuntu 12.04 and I
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web
browser:
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn''t
2011 Nov 02
4
undefined method `updated_at' for #<Classified:0x686c5e4>
HEllo, I have the following problem with rails, I am new in this...is
there anyone who explain to me what´s happens?
Thanks
See below:
NoMethodError in Classified#show
Showing app/views/classified/show.rhtml where line #17 raised:
undefined method `updated_at'' for #<Classified:0x686c5e4>
Extracted source (around line #17):
14:
15: <strong>Date Posted:</strong>