Displaying 20 results from an estimated 10000 matches similar to: "Problem with creating custom generator"
2009 May 12
0
`load_missing_constant': uninitialized constant Rails::Generator (NameError)
Hello,
I''m probably missing something pretty basic here as a rails newbie but
I''m trying to write a plugin and I am trying to get my generator to work.
I am trying to call the manifest method in my
vendor/plugins/media_module/generators/media_module_generator.rb from my
vendor/plugins/media_module/init.rb.
here''s the code in vendor/plugins/media_module/init.rb:
2007 May 24
2
Missing RspecScaffoldGenerator
Just a quick note that I had to make the following change after
installing 1.0.2 as rails plugins to get the resource generator
working:
Index: rspec_scaffold_generator.rb
===================================================================
--- rspec_scaffold_generator.rb (revision 2022)
+++ rspec_scaffold_generator.rb (working copy)
@@ -1,4 +1,4 @@
-class RspecResourceGenerator <
2009 May 12
1
`load_missing_constant': uninitialized constant Rails::Gener
Hello,
I''m probably missing something pretty basic here as a rails newbie
but I''m trying to write a plugin and I am trying to get my generator to
work.
I am trying to call the manifest method in my
vendor/plugins/media_module/generators/media_module_generator.rb from my
vendor/plugins/media_module/init.rb.
here''s the code in vendor/plugins/media_module/init.rb:
2006 Apr 25
3
Creating your own generators
So I''m interested in creating an application specific generator. The
script/generate command tells me that all I have to do is put a
generator in my rails_root/generators:
> 2. Unzip to directory /Users/{username}/.rails/generators/login
> to use the generator with all your Rails apps
> or to {app_root}/generators/login
> to use with this app only.
So I
2010 Mar 20
1
[PATCH] AR migration generator includes model's modules in table name. [#4230]
Hello! Could someone review the patch attached to [1] and provide
feedback?
Briefly, it targets rails 3, and fixes "rails g model admin/post".
The generated migration creates a "admin_posts" table while the model
expects a table simply named "posts". With the patch, the migration
creates "posts".
Thank you!
--phil--
[1]
2009 Dec 09
1
How to namespace custom generators?
I have a few custom generators within ~/.rails/generators. This works
fine and they all show up under "User" as they should when I run
script/generate.
I would like to be able to have multiple Dirs. under ~/.rails/
generators so I can better organize things and have unique repos for
each.
If I do something like ~/.rails/generators/cms_generators/gen_1 and
2006 Oct 09
2
Trouble Creating a Ticket
Hello,
I've been trying to create a new ticket in the xiph.org trac instance.
I'm able to enter ticket details at https://trac.xiph.org/newticket, but
when pressing "submit ticket" I get a "403 Forbidden" message.
I was able to create a ticket just last week:
https://trac.xiph.org/ticket/1085, so the problem seems to be new.
Thanks. (I hope this is the right place
2011 Apr 29
1
Custom controller for scaffold generator
Hi,
i put my customized controller in
lib/templates/scaffold_controller/controller.rb
for using in scaffold generation.
The problem is that the original controller template is used!
Where do i put my custom controller template? Or maybe is this a bug?
I''m using Rails v. 3.0.7 (Ruby 1.9.2p180)
Thanks in advance,
ciao
iwan
--
Posted via http://www.ruby-forum.com/.
--
You received
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
created a small patch.. looking for feedback / etc..
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5319-adding-options-to-erb-scaffold-generator-to-include-or-skip-custom-views-templates#ticket-5319-2
When I was working on customizing the erb scaffold generator to match
the style and design I wanted to use by creating custom templates in /
lib/templates/erb/scaffold I found
2006 Aug 31
1
Interface for package supplied random number generator
Hi,
As you probably know, there is a problem with the interface for adding uniform
random number generators in R (see by article in R News 5/2, November 2005).
There exists a mechanism called "user-supplied" that allows users of R
to run their own generator in R. However, there is no such mechanism for
package writers. Those who want to add their own generators abuse
2009 Jan 03
1
runif (and other generator) "precision" / man pages
I'm inclined to agree with the view that the "precision" of a generator
should be highlighted better in the manual pages. When I do
?runif
I don't see a mention, but ?.Random.seed DOES give the info, as Duncan
points out, and it is suggested to look there.
A 1-liner with each random number generator
"CAUTION: random number generators use different mechanisms and
2005 Jan 29
4
problem with postback generator on 0.9.5
I''m trying to call the postback generator on rails 0.9.5. I''ve
installed the postback tarball into
gems/1.8/gems/rails-0.9.5/generators/postback as it seems like it is
supposed to be. At least, I installed the login generator the same way
and it works. But when I try to run it, I get this:
[carl@e236014 test]$ ruby script/generate postback
2012 Dec 19
0
Creating custom iso with extra packages and scripts
I have been able to use the "make release" command to create a custom iso
for FreeBSD which includes some changes to the various bsdinstall scripts.
It all works well as the iso / memory stick images / ftp files are
generated and usable.
What I would now like to do is try adding couple of files, scripts and
packages to this custom iso. I am a little confused on where the files
should be
2011 Feb 01
0
Creating a custom variable in xenstore from dom0
I want to create a custom directory something like a/b in the xenstore, i
guess there are no domU commands for the same. So how can create this in
dom0?
Thanks
--
View this message in context: http://xen.1045712.n5.nabble.com/Creating-a-custom-variable-in-xenstore-from-dom0-tp3365541p3365541.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
2013 Jun 21
0
help creating custom genericups configuration - RNG only!
On Jun 20, 2013, at 9:48 PM, Reed Hedges wrote:
> UPSPORT=/dev/ttyS0
>
> # type cablep kill t powerok battok cableok
> robot --- RI 0 /RI --- ---
> ?
>
> Is there an equivalent of ?---? in genericups?
I think it's pretty much any value other than a valid
2013 Jun 21
1
help creating custom genericups configuration - RNG only!
OK, I'll try "none" and see what happens.
-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com]
Sent: Thursday, June 20, 2013 10:14 PM
To: Reed Hedges
Cc: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] help creating custom genericups configuration - RNG only!
On Jun 20, 2013, at 9:48 PM, Reed Hedges wrote:
> UPSPORT=/dev/ttyS0
>
2008 Aug 21
0
Problems with creating custom axis labels
Hello,
I've been struggling for more than a few hours with a very simple problem
having to do with axis labeling and haven't had any success searching in the
online resources for the proper syntax. This is the basic task I'm trying
to accomplish:
I want to label the tick marks on a contour graph with .1, .2., .3.... 1 on
both the x and y axes. The default is for them to be labeled
2009 Nov 11
2
creating custom package and functions
Hi all,
I am new to R-project
I have to create custom package and some required functions in that package
can any one help me how to create a custompackage and how to write my
function in to that package
These things I have to use in many places as per requirements in my solution
please help me to create these custom packages
thanks in advance
kiran.
[[alternative HTML version deleted]]
2010 Sep 29
2
FW: creating a custom background
Hi.
I want to create a plot with Pantone654 as the background. The RGB for this color is (0,61,121), which corresponds to a hex of #003D79. How do I specify the bg parameter for this?
All Best,
Ethan
[[alternative HTML version deleted]]
2013 Jun 21
2
help creating custom genericups configuration - RNG only!
Hello, I am trying to understand how to create a custom configuration for the genericups driver. My system simply signals RI on a serial port on low battery. That's it, nothing else. This serial port is also being used for communications so the other lines are going to be changing all the time, unrelated to the UPS state. Is there a "null" upstype I can use, and then add LB=RNG?