Displaying 20 results from an estimated 10000 matches similar to: "getting error:undefined method 'current'"
2012 Jan 17
5
Accessing the ROR Application
hi all,
I successfully deployed the ROR project on Centos server,i have one
question how can i access that application from my machine ?
on starting WEBRick server it is started on this ip http://0.0.0.0:3006,
i want to set my machine ip in place of ''http://0.0.0.0:3006'' and also
how i can access it from my machine ?
Thanks in advanced.
Thanks and Regards
Sachin S.
2011 Dec 23
6
http session nil
hi all,
i am new in ruby on rails,i have one issue regarding the session in ruby
on rails.I am using session , i have following condition in my rhtml
<%if @session[''user''].first_name == "admin"%>
<table width="290" border="0" height="20" align="right"
cellspacing="0"
2011 Dec 16
4
nil object Error
hi all,
i am getting following error ,i can''t figure it out why and from where
it is coming ?
please help me out to resolved this error if anyone knows about this issue.
i am using following env.
O.S:Windows XP
Ruby:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
Rails:Rails 2.3.11
Gem:1.6.2
ActionView::TemplateError (You have a nil object when you didn''t expect
2012 Jan 03
1
updating rails version to 3.1.3 get error
hi all,
i have ruby : 1.8.7 rails :2.3.11 and rubygem:1.6.2 installed on my
Windows sys. my application work without error .I have upgraded the
environment
to gem:1.8.12,rails:3.1.3 ,ruby:1.9.2
i have getting the following error on starting the Webrick server
D:/Hemant/Suggestica_setup/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'': cannot load such
2012 Feb 02
3
WEBrick WEBrick server became extremely slow
hi all,
for some reason my WEBrick server became extremely slow on live.i am
using Fedora 14 and Ruby 1.8.7 ,Rails 2.3.11 and RubyGem 1.6.2.
is there any reason why this would be the case?
--
Thanks and Regards
Sachin S. Kewale
--
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 Feb 28
1
issue with greater than operator in rhtml
hi all,
i have one issue with the greater than operator ,how should i use greater
than operator ?
i have condition <%if @c_page > 5%> it giving error ''undefined method `>''
for nil:NilClass''
thanks in advanced
Regards
Sachin
--
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to
2012 Aug 04
4
Rspec
Hi all i''m trying to learn Rspec testing can anyone suggest me the best
book to learn Rspec with good sample code.
Thanks in advance
--
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,
2011 Dec 05
2
About Latest version of ROR
hi all,
i have application developed in following ruby ,rails and gem version i
want to upgrade it with latest version,can anyone tell what are
stable version for ruby,rails and gem ? and also with compability for
Ruby and Rails version with latest gem version ?
gem version:1.3.7
ruby version:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]
rails version:Rails 1.1.6
thanks in advanced
2012 Mar 17
8
Agile web development with rails 4th edition adding sizes to the product
Hi I am going through the Agile web development with rails 4th edition
book and I am trying to modify the depot application to allow the
customer to select a size before purchasing a product. What and how
would I have to modify the depot app to do this?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Jul 11
36
has_many and belongs_to association
Hi ,
I want to test the one below but I got the problem
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
in my test
context "test"do
should have_many :phrases
end
in language.rb
belongs_to :name, :class_name => "Phrase", :foreign_key => "name"
error is
1) Failure:
test: check has_many and belongs_to
2012 Nov 26
8
why functional test does not get failure?
The test:
test "should get new" do
get :new, :room_id => @room.name
assert_template(:ne)
end
the template new does not exists but the test does not get failure.
Why?
--
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 Nov 17
6
after changed the tag i got the same eror
SyntaxError in Upload#index
Showing *app/views/upload/uploadfile.rhtml* where line *#10* raised:
compile error
app/views/upload/uploadfile.rhtml:10: syntax error
Extracted source (around line *#10*):
7: <% end %>
Trace of template inclusion: app/views/upload/uploadfile.rhtml
RAILS_ROOT: /home/malathi/www/upload
Application Trace <http://localhost:3000/upload#> | Framework
2013 Jan 07
9
Devise Admin View password
Hi Everyone
i am using devise for authentication for my app.
Is there any way, Admin user can view other users password as normal string.
Without storing there password as string in database?
Please advise.
--
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 Aug 27
6
assert_select for <p><b>text</b>value</p>
I have the following html
<p><b>text</b>value</p>
I can use
assert_select "p>b", "text"
to check the text portion, and
assert_select "p", "value"
to check that the value appears in a <p>. I cannot work out how to
check that the two are in the same <p>. I have used assert_select for
much more complex tasks but my mind
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity
post=County.new(:name=>"myname",:description=>"mydesc")
assert post.save
end
above is the method and when i run unit test it is saying as
1) Failure:
test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]:
<false> is not true.
what does it say i cannot under stand
please help
--
Karthik.k
Mobile -
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all,
I am using paperclip plugin. when i am trying to upload photo i am
getting this error " Photo Paperclip::CommandNotFoundError "
and i am getting this error on my server production mode. if i run on
development mode on my server i can able to upload the pic. why this is
happening i have no idea.
can any help me out.
Cheers,
Kp
--
You received this message because
2013 Jan 25
4
Usage of ram for Sunspot Search engine
Hi all,
I am using Sunspot Search Engine in my app. When I deployed my app in
production It it bit slower side.
My Server Details:
ram 256
Ubuntu 11.10
How can I check why my app is slow in production can any one help me out to
solve this issue.
Cheers,
Kp
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2008 Jun 03
3
OpenSpace support for mapstraction
Attached is patch to provide support for OpenSpace in mapstraction. A demo
can be seen at http://yvonnesplants.co.uk/openspace_demo.html.
Note that OpenSpace seems sometimes to have a problem with links clicked
from email. If you get an error ''HTTP referrer not valid'' then open a new
browser window and paste in the link and it should be ok.
The following features are not
2011 Nov 05
13
Adding a site admin user while creating a site
Hi Gurus,
I wanted to add siteadmin user(basically a user with a certain role) while
creating the site itself. I hope that i have done all the necessary stuff
by going through raynb''s railscasts (
http://railscasts.com/episodes/196-nested-model-form-part-1) But could not
see user fields being displayed in the site creation form.. Below are the
details.
I Have two model users and
2009 Sep 29
10
rails 2.3.3 upgrade shows error
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
any ideas ?
Application works fine with rails 2.1.0
Sandip
--
Ruby on Rails Developer
http://funonrails.wordpress.com
www.joshsoftware.com
http://brandpotion.com (Latest project released)
--~--~---------~--~----~------------~-------~--~----~