similar to: Creating your own generators

Displaying 20 results from an estimated 600 matches similar to: "Creating your own generators"

2006 Apr 19
3
Useful article for anyone programming for paid client work
We''re working on a new series of applications called "RealApps" - simple plugins and components add functionality to Rails applications. We just posted an article describing the first one - a content management system. We also go into the business case behind the design we chose. Good stuff for programmers to know - especially if you are doing paid client work. It
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 <
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 May 11
3
daemons load activesupport 2.2.2 instead of 2.1.0, causing failure
Hi, I have a couple of daemons that im trying to setup to be run for my app. The environment load is as follows.. ENV["RAILS_ENV"] ||= "development" require File.join(File.dirname(__FILE__), "/../../config/environment") And the error I get is #<LoadError: no such file to load -- active_support> #<Gem::Exception: can''t activate activesupport (=
2006 Jul 31
2
Testing the flash.now
What''s the best way to test the flash when you use flash#now ? For example, if I set the flash in my controller: flash.now[:notice] = ''This will only show up on this action.'' How do I test it? Normally I would do: assert_equal ''This will only show up on this action.'', flash[:notice] But this doesn''t seem to work with flash.now. Any
2006 Apr 17
7
MySQL backticks and column names
The upgrade to Rails 1.1 hurt my ability to run tests because it generated the following MySQL error: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''key ON config (key)'' at line 1: CREATE UNIQUE INDEX key ON config (key) I have a table called `config` with a column
2006 May 01
1
Radius 0.0.1 -- Powerful Tag-Based Templates
I am pleased to announce the immediate release of Radius 0.5.0. Radius is a small, but powerful tag-based template language for Ruby inspired by the template languages used in MovableType <www.movabletype.org> and TextPattern <www.textpattern.com>. It uses tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...). This release is much more feature
2006 Apr 18
0
- RealApps CMS - Simple Content management Plugin
We''ve just released our first in the RealApps series - a dead-simple CMS for Rails. It''s implemented as a plugin you can download, which then generates scaffolded code for administering your content. It''s designed to be a starter system for small sites, and of course you can build on it as you want. It''s also a good place to look if you want to see how
2006 May 01
17
Radiant CMS
I am pleased to announce that Radiant CMS is now publically available from the Subversion repository at: http://radiantcms.org/ What is Radiant? ---------------- Radiant is a no-fluff, open source content management system designed for small teams. It is similar to Textpattern or MovableType, but is a general purpose content management system (not a blogging engine). Radiant features:
2007 Oct 16
10
Scenarios Plugin Pre-Announcement
This is sort of a pre-announcement for a Rails plugin my friend Adam Williams and I are working on. We''re in the process of extracting it from a project we are working on so that it can be generally useful to the Rails community. We are calling it "Scenarios". It is a drop in replacement for Rails fixtures: http://faithfulcode.rubyforge.org/svn/plugins/trunk/scenarios/README
2006 Jan 17
0
Testing Validations in Rails
I present: http://wiseheartdesign.com/articles/2006/01/16/testing-rails-validations/ What are your testing secrets for Rails? -- John Long http://wiseheartdesign.com/
2008 Apr 15
0
Problem with creating custom generator
Hi, I''m trying to create a new generator class in my .rails/generators directory. Everything appears to be setup correctly but when I run ruby script/generate the generator doesn''t appear in the list. I''m running on Windows XP with Rails 2.0.2. My rails install is working fine (several apps running locally). Some details. * Home directory: C:\Documents and
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:
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:
2009 Feb 26
11
OpenSSL::Cipher decrypt returns 'wrong final block length'
I just want to encrypt a string submitted through a form before saving it to the DB. And then decrypt it again when I need to retrieve and use it. Im trying to use the OpenSSL::Cipher library. I have the following module for encryption/decryption [code] require ''openssl'' module AESCrypt # Decrypts a block of data (encrypted_data) given an encryption key # and an
2006 Nov 04
0
Ruby Site Launched
We just launched the new Ruby Site: http://ruby-lang.org A full write up here: http://www.ruby-lang.org/en/news/2006/09/12/site-launch-at-last/ Digg it: http://digg.com/programming/Redesigned_Ruby_Site_Launched Kudos to everyone involved! -- John Long http://wiseheartdesign.com http://radiantcms.org
2006 Jan 13
0
Saving ActiveRecord objects that are composed of other objects
I''ve got two pretty simple model objects Page and PagePart. Page has_many PageParts and PageParts belong_to Pages. When updating PageParts for a specific Page I''d like to be able to do: page.parts[x].content = ''changed'' page.save and expect that should the validation pass the changed page part would be saved as well, but this doesn''t seem to
2005 Apr 10
0
Chicago Area Ruby Group Meetup with DHH
The Chicago Area Ruby Group would like to extend a warm invitation to Ruby developers everywhere to a meetup with David Heinemeier Hansson on Saturday, April 23rd. We will start out at a Giordano''s Pizzeria downtown and afterwards move to a conference room provided by the kind folks at Site 9. The topic will most likely be Ruby on Rails and I am sure we will probably talk about
2007 Oct 21
18
plain text stories
Thanks to discussions on this list, suggestions from many of you and a patch from Pat Maddox, we now have Plain Text User Stories in Story Runner. Read more: http://blog.davidchelimsky.net/articles/2007/10/21/story-runner-in-plain-english Cheers, David
2006 Jun 30
0
Radiant CMS 0.5 - Grindstone
Last night I quietly rolled out the first official release of Radiant: 0.5 - Grindstone. This release was a stability release mostly targeted toward making it easy for people to download and get started with Radiant. Radiant now ships with a simple setup_database script which makes it easy to get up and running with one of three default templates. We also made it easy for people to install