Displaying 20 results from an estimated 70000 matches similar to: "How to extend a rails 3 generator"
2010 Jan 29
1
Rails 3 App generator - could not find source path
Could not find "README" in source paths.
module Nifty
module Generators
class AppGenerator < Base
def self.source_root
@source_root ||= File.expand_path(File.join(File.dirname
(__FILE__), ''templates''))
end
def initialize(*args)
super
end
def create_root_files
# puts "Source path:
2010 Jan 28
5
files are missing in rails app
I''ve built the slackware packages of rails.
rails path is: /frm/ruby/1.8.6/lib/ruby/site_ruby/1.8
RUBYLIB :
/frm/ruby/1.8.6/lib/ruby/site_ruby/1.8:/frm/ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux/
I could created the rails application, but files are missing.
Config
- boot.rb, database.yml, environment.rb and routes.rb
Public
-
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 Aug 12
2
rails 3- Could not find generator session.
Hello,
I am trying to use Authlogic in Rails 3.
when I run " rails g session admin_session" to create the session, I
get-
======================
"Could not find generator session."
======================
I''m using Rail 3 RC and working off the Rail3 Branch now
======================
GemFile:
gem ''authlogic'', :git =>
2013 Jun 18
1
Rails 3 in action book: some files are not generated as written in the book
I''m reading "Rails 3 in action", chapter 3, p. 56.
It is said that the Cucumber skeleton generator
> rails generate cucumber:install
has to also generate the definition for the first step of the Scenario
"Given I am on the homepage" in the file
"features/step_definitions/web_steps.rb"
# file: features/step_definitions/web_steps.rb
Given /^(?:|I )am on
2011 Apr 21
2
Rails 2.3.11 and carrierwave, can't find generator
I added carrierwave to a 2.3.11 app that I have updated with Bundler.
I just tried to use the following:
script/generate uploader Avatar
The following error is coming back:
NOTE: Gem.cache is deprecated, use Gem::source_index. It will be
removed on or after 2011-08-01.
Gem.cache called from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/
rails_generator/lookup.rb:234
.
Couldn''t find
2011 Jan 02
7
Rails, .swf, .flv
I have the following HAML code
ul{ ''id'' => tutorials_ul }
%li
%a{''href'' => ''/videos/create-command-001.swf''}
''Edition swf''
%li
%a{''href'' => ''/videos/create-command-001.flv''}
''Edition flv''
When the user clicks on
2012 Oct 17
1
generate 10 UUID records and save it it database in rails
I need to create certain number of UUId records(based on the selection
of drop down) and save it in the database. Now I am generating only one
unique id. Can this be done in the model in this way. Or do I need to
write a helper file for that??
def generate_unique_token=(value) self.secret =
Base64.encode64(UUIDTools::UUID.random_create)[0..8] end
In my controller...........
def create
2010 Feb 05
1
Is there no generator in rails 3?
Hye guys:
Just downloaded the rails3 beta for testing.
But find there is not ''''generator" for me to create some scaffolds.
Any ideas guys?
--Terry
--
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
2011 Mar 02
3
Couldn't find 'rspec' generator
Hi,
I am trying to learn the RSpec but unfortunately I found all the
tutorials which are very old. Is anyone have latest tutorial?
I am following some tutorial, I have followed the following steps:-
1) gem install rspec
2) gem install rspec-rails
3) ./script/generate rspec
I am getting an error that "Couldn''t find ''rspec'' generator"
I have searched for this
2011 Mar 09
1
Generating Unique Tokens for Assets within Rails Application
I''ve been developing an application in Rails 3.0.3 using Ruby 1.9.2.
It is one of my first applications using Rails 3 and I am quite
pleased with the progress thus far. However, I am wanting to add a
feature that I have thought through, but I am not sure where to really
begin.
Essentially, I am building a dumping ground for files, much like
Dropbox, however this is mostly for personal
2012 Mar 20
9
Rails 3 generate pdf
Dear All,
i am developing an application with rails 3, and now i need to generate
a pdf file,i search a lot, and try a lot ,such as prawn ,PDFkit and so
on, it seems that prawn is no response in rails3, and when i use PDFKit,
it asked me to install wkhtmltopdf first, i try to install this,but
failed, anyone can help me ?
Thanks very much.
Daisy
--
Posted via http://www.ruby-forum.com/.
--
2012 May 21
4
Rails developer required.
If you are experienced rails developer please let me know.
--
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
2012 Feb 01
2
How do I install this gem?
I''m trying to figure out how I can setup my own forums using Ruby, but I
can''t get passed installing "nifty-generators"... I haven''t a clue how
to install the gems... Please tell me what I''m doing wrong?
I open the command prompt, I type in :
gem install nifty-generators
And this is what I get:
Successfully installed nifty-generators-0.4.6
1 gem
2012 May 13
0
Website screenshot generator gem for rails
Hi guys,
I''m looking for a good solution for website screenshots generator.
I''m thinking of using PaperClip or CarrierWave, What is your suggestion
? What is the right way to do it ?
Itamar
--
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
2010 Jun 27
0
Rails layout generator not doing what the documentation sais it should be doing?
Hello,
I''ve just started playing around with the Rails 3.0.0.beta and I came
across some seemingly strange behaviour, where I expected:
"In previous versions of Rails, the rails generate scaffold command
would automatically create a controller specific layout, like app/
views/layouts/posts.html.erb, for the posts controller. However this
has been changed in Rails 3.0. A application
2010 Mar 10
2
Decimal fields generated in Rails 2.3.5 act like strings, sort of
Hi All,
I just created a new CRUD "expense" (using Rails 2.3.5 scaffold) which
included "amount:decimal". When I:
1. populated the amount field of a new expense with 5 characters:
12.50 and
2. saved the new record
I got a display of the new record that showed Amount to be merely
"12".
I clicked Update and put my cursor over the data field for Amount and
got a
2011 Feb 07
2
Rails App permissions?
I can''t start my app and I suspect permissions and ownership. What
permissions should a Rails App have? Can I set 755 on everything or
should it be less on some files?
--
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
2011 Nov 24
4
How to upgrade rails 2 application to rails 3?
I developed a rails application using rails 2.3.8 version but now how to
upgrade this application in rails 3.0 version.
--
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
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