Displaying 20 results from an estimated 20000 matches similar to: "Couldn't find 'rspec' generator"
2011 Mar 03
1
Cucumber not inserting record in db
Hi,
I am trying to learn Cucumber. I have followed the tutorial on
"http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/"
Everything is working fine but my problem is it is not inserting any
record in either development or test database.
Can anyone tell me IS it the behaviour of the Cucumber or Am I missing
something?
Thanks,
Tushar
--
Posted via
2010 Jun 21
1
in `const_missing': uninitialized constant CGI::Session
Hi,
I have an application which previously running on rails 2.2.2. I just
upgraded the rails to 2.3.8. After that I tried to start the server I
got the following error:-
"/usr/local/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in
`const_missing'': uninitialized constant CGI::Session (NameError"
Anyone have any idea How to solve this
2010 Feb 04
2
Encrypt a user password using "Authlogic"
Hi,
I have a csv file which have the user detail. I want to migrate this
information into the "users" table.
My application use "Authlogic" for user aunthentication so I have to
encrypt the password during migration. I have written the script which
is reading the csv file and adds the record into "users" table, it is
working fine. But I am not able to encrypt the
2009 Dec 24
2
Showing graphs on browser with gruff lib.
Hi,
I am using "gruff" lib for creating the graphs.
I have got the success to create the graph, but my problem is I don''t
want to store it, I want that they should be displyed on the browser it
self.
I have tried this:-
"
send_data(g.to_blob, :disposition => ''inline'', :type => ''image/png'',
:filename =>
2010 Jun 07
3
Model validation giving problem
Hi,
I have a member registration form which takes a "Name", "Login",
"Password", "Confirm Password" and "Location". In the user model I have
added the validation
validate_uniqueness_of :login, validate_presence_of :password, :name,
:confirm_password.
When the member tries to register every thing working fine. I am using
same form for user to edit
2010 Mar 09
1
Redirect to the url after login
Hi,
I am using authlogic as a authentication mechanism.
I am sending out an email to user if he has any new friend request. I am
giving a URL in the email from which he can accept the invitation.
My problem is whenever the user is not logged in he is redirected to the
login page first. After successful login he should be redirected to
"accept_friendship" URL But it doesn''t it
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
Hi,
I am using ruby 1.9.2 and rails 3 for my application.
I have written a bash script which I want to run in cron.
If I directly run the bash file it runs. If I run it through the cron I
get the following error:-
"/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'': no such file to load -- rails/commands/runner (LoadError)
from
2010 Feb 05
1
Encrypting the password using Authlogic
Hi,
I am using "Authlogic" for user authentication.
I have a excel file into which I have user deatils. I have to migrate
those details to the "users" table. For that I have written a script
which goes through the excel file and store the data into "users" table.
My code is like this:-
user=User.new
user.password="password"
2011 Feb 17
1
Adding images for pagination links in will_paginate
Hi,
I am using will_paginate for pagination.
I have to show only Previous and Next links, that I have achieved by
":page_links=>false" parameter.
Now I want to show the images instead of "Previous" and "Next" labels.
Can anyone tell how to achieve this in will_paginate?
Thanks,
Tushar
--
Posted via http://www.ruby-forum.com/.
--
You received this message
2011 Apr 27
2
rspec -> Could not find generator rspec_controller
for some reason, i cannot get the rspec generators to work. i am getting
the following:
$ rails generate rspec_controller
Could not find generator rspec_controller.
the rest of the parts of rspec (that i am familiar with) seem to be
doing just fine.
i am running:
* rails (3.0.5)
* rspec (2.6.0.rc2)
* rspec-core (2.6.0.rc2)
* rspec-expectations (2.6.0.rc2)
* rspec-mocks (2.6.0.rc2)
2010 Jun 08
2
gem install mysql giving error on linux
Hi,
I have mysql installed on linux. Whenever I am trying t
"gem install mysql -- --with-mysql-dir=/usr/bin/mysql"
I am getting following error:-
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb --with-mysql-dir=/usr/bin/mysql
checking for mysql_ssl_set()... ***
2011 Jan 04
1
Problem with "date_select" form helper
Hi,
I am using "date_select" form helper to select the date.
My code is as follows:-
<%=date_select("post", "written_on", :prompt => { :day => ''Select day'',
:month => ''Select month''}, :discard_year=>true)%>
It works.
But there is problem with the number of days for each month.
The days combobox has populated with
2009 Mar 31
9
Application without database.yml
Hi,
I have created one application. In that application I am not using any
database.
Whenever I starting rails server it is giving me an error for
configuration of database.yml.
What should I do for this?
Thanks,
Tushar
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2009 Apr 27
5
ruby jasper report
Hi,
I am trying to create a pdf using ruby jasper.
For this I am referring this url:-
http://oldwiki.rubyonrails.org/rails/pages/howtointegratejasperreports
I have done everything whatever is in that link.
Still I am not able to get the pdf. I am not getting any error in log
file. My log file is:-
"Processing AccountController#customer_report (for 127.0.0.1 at
2009-04-27 13:19:34) [GET]
2010 Aug 06
1
Could not find generator rspec:install.
I''m trying to follow this tutorial here: http://railstutorial.org/chapters/static-pages#top
When I run:
$ rails generate rspec:install
I get:
Could not find generator rspec:install.
What could be the problem?
Thanks.
2010 Sep 21
3
RSpec beta 22 with Rails 3
I am working on a Rails 3 application. Recently bundler got an update for
rspec, which upgraded it to 22, (previously we were using beta 20).
After the update we are unable to run the old using ''rake spec:rcov'', while
running with ''rake spec'' is running fine.
When you do rake spec it does not give any output and finishes the task.
something like below :
$ rake
2012 Jan 26
1
[LLVMdev] How to get trace using llvm?
Hello,
I am trying to get the trace by running my sample program using llvm. I
was referring following link for lli:
http://llvm.org/releases/1.0/docs/CommandGuide/lli.html
after that I installed llvm and llvm-gcc. Here is the version detail:
tushar at tushar-mehta:~/NUS/os_project/tryout$ lli -version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.8 (Ubuntu 2.8-0ubuntu1)
2010 Jun 11
2
Problem using Ruby On Rails with rspec to write user stories
Hej out there,
i''m a newbie on ror and im trying to install rspec on my computer. I
installed rspec an rspec-rails via gem.
when i''m running the file script/generate rspec it works. but i have
no folder called stories....
how can i fix this problem?
thanks...
hope to get some help;)
--
You received this message because you are subscribed to the Google Groups "Ruby on
2013 Nov 22
2
Cancan Rspec load_and_authorize_resource
Hello!
While running bundle exec rake, I receive following error (see in
attached file)
However, my tests are steel passing with command rspec spec/controllers/
Some info:
ads_controller.rb:
class AdsController < ApplicationController
load_and_authorize_resource except: :create
end
ads_controller_spec.rb:
require ''spec_helper''
describe AdsController do
render_views
2010 Jul 08
2
rspec-rails how to selectively turn on csrf protection for controller specs?
I''m setting up a Paypal IPN listener and need the create action to not
use rails'' default CSRF protection.
I''ve got that working fine & test it actually works with cucumber
(where I''ve turned CSRF back on, since it''s full-stack testing) but
would like my controller spec to mention the need for
protect_from_forgery :except => [:create] (and fail