[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8083":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":19,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},8083,"nifty-generators","ryanb\u002Fnifty-generators","ryanb","A collection of useful Rails generator scripts.","",null,"Ruby",1968,277,1,53,0,55.33,"MIT License",true,false,"master",[],"2026-06-12 04:00:37","= Unmaintained\n\nThe Nifty Generators project is \u003Cb>no longer maintained\u003C\u002Fb>. Feel free to fork the project.\n\n\n= Nifty Generators\n\nA collection of useful Rails generator scripts for scaffolding, layout files, authentication, and more.\n\n\n== Setup\n\n=== Rails 3\n\nAdd the gem to your Gemfile.\n\n  gem \"nifty-generators\", :group => :development\n\nThen you can run any of the included generators.\n\n  rails g nifty:scaffold Recipe name:string index new\n\n=== Rails 2\n\nFirst install the gem.\n\n  gem install nifty-generators\n\nThe generators will be available in all Rails applications. To run the generator, go to your rails project directory and call it using the script\u002Fgenerate or script\u002Fdestroy command.\n\n  script\u002Fgenerate nifty_scaffold Recipe name:string index new\n\nNote an underscore is used instead of a colon for the Rails 2 generators.\n\n\n== Included Generators\n\n* nifty:layout: generates generic layout, stylesheet, and helper files.\n* nifty:scaffold: generates a controller and optional model\u002Fmigration.\n* nifty:config: generates a config YAML file and loader.\n* nifty:authentication: generates user model with sign up and log in.\n\nTo view the README for each generator, run it with the +help+ option.\n\n  rails g nifty:layout --help\n\n\n== Troubleshooting and FAQs\n\n\u003Cb>What is the difference between nifty:scaffold and built-in scaffold?\u003C\u002Fb>\n\nOne of the primary differences is that nifty:scaffold allows you to choose which controller actions to generate.\n\n  rails g nifty:scaffold post name:string index new edit\n\nThere are a few changes to the generated code as well, such as no XML format by default.\n\nIt also offers support for HAML, Shoulda, and RSpec.\n\n\n\u003Cb>I get \"undefined method 'title'\" error.\u003C\u002Fb>\n\nTry running nifty:layout, that will generate this helper method. Or you can just change the templates to whatever approach you prefer for setting the title.\n\n\n\u003Cb>I can't set new attributes in my model.\u003C\u002Fb>\n\nAdd the attribute to the attr_accessible line in the model.\n\n\n\u003Cb>I get \"undefined method 'root_url'\" error.\u003C\u002Fb>\n\nSome generators default redirecting to the root_url. Set this in your routes.rb file like this (substituting your controller name).\n\n  root :to => \"home#index\"\n\n\n\u003Cb>I get a missing database error.\u003C\u002Fb>\n\nRun \u003Ctt>rake db:migrate\u003C\u002Ftt>.\n\n\n\u003Cb>I get a routing error when I try to submit a form.\u003C\u002Fb>\n\nTry restarting your development server. Sometimes it doesn't detect the change in the routing.\n\n\n\u003Cb>The tests\u002Fspecs don't work.\u003C\u002Fb>\n\nMake sure you have mocha installed and require it in your spec\u002Ftest helper.\n\n  gem install mocha\n\n  # in spec_helper.rb\n  config.mock_with :mocha\n\n  # in test_helper.rb\n  require 'mocha'\n\nAlso, make sure you're using Rails 2.1 or greater.\n\n\n== Project Status\n\nUnfortunately I have not had time to actively work on this project recently. If you find a critical issue where it does not work as documented please {ping me on Twitter}[http:\u002F\u002Ftwitter.com\u002Frbates] and I'll take a look.\n\n\n== Found a bug?\n\nIf you are having a problem with Nifty Generators, first look at the FAQs above. If you still cannot resolve it, please submit an issue here.\n\nhttp:\u002F\u002Fgithub.com\u002Fryanb\u002Fnifty-generators\u002Fissues\n\n\n== Development\n\nIf you want to contribute to this project, you can download the Git repository and get the Cucumber features running by calling +bundle+ then +rake+. I normally develop this using Ruby 1.9.2 however it should work with 1.8.7 as well.\n\nThe Rails 3 generators are located under \u003Ctt>lib\u002Fgenerators\u003C\u002Ftt> and are tested with Cucumber. The older Rails 2 generators are under \u003Ctt>rails_generators\u003C\u002Ftt> and are tested with Shoulda under the \u003Ctt>test\u003C\u002Ftt> directory.\n","Nifty Generators 是一个集合了多种实用 Rails 生成器脚本的项目，旨在简化 Rails 应用开发过程中的常见任务。它提供了包括布局文件、认证机制、控制器和模型等在内的多个生成器，支持自定义控制器动作的选择，并且兼容 HAML、Shoulda 和 RSpec 等技术栈。尽管该项目已不再维护，但其功能对于快速搭建基础 Rails 应用框架仍然非常有用，特别是在需要快速原型开发或小型项目初始化时。适用于希望提高开发效率、减少重复代码编写的 Ruby on Rails 开发者。",2,"2026-06-11 03:15:58","top_language"]