Permalink
Browse files

new git initialized

  • Loading branch information...
Rushabh Hathi
Rushabh Hathi committed Feb 13, 2012
0 parents commit 19b8eb3f73c298757d08cc6eaea65057edc98514
Showing with 11,590 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +6 −0 Gemfile
  3. +149 −0 README.md
  4. +12 −0 README.rdoc
  5. +1 −0 Rakefile
  6. +145 −0 doc/;tl&.html
  7. +255 −0 doc/ApplicationHelper.html
  8. +151 −0 doc/Create.html
  9. +147 −0 doc/Everything.html
  10. +502 −0 doc/Everything/Scaffold.html
  11. +243 −0 doc/FileUploader.html
  12. +112 −0 doc/Gemfile.html
  13. +112 −0 doc/Gemfile~.html
  14. +528 −0 doc/Object.html
  15. +12 −0 doc/README.rdoc
  16. +107 −0 doc/README_rdoc.html
  17. +109 −0 doc/Rakefile.html
  18. +145 −0 doc/The_silver_spoon.html
  19. +602 −0 doc/The_silver_spoon/Install.html
  20. +158 −0 doc/Thesilverspoon.html
  21. +23 −0 doc/created.rid
  22. +107 −0 doc/doc/README_rdoc.html
  23. BIN doc/images/add.png
  24. BIN doc/images/brick.png
  25. BIN doc/images/brick_link.png
  26. BIN doc/images/bug.png
  27. BIN doc/images/bullet_black.png
  28. BIN doc/images/bullet_toggle_minus.png
  29. BIN doc/images/bullet_toggle_plus.png
  30. BIN doc/images/date.png
  31. BIN doc/images/delete.png
  32. BIN doc/images/find.png
  33. BIN doc/images/loadingAnimation.gif
  34. BIN doc/images/macFFBgHack.png
  35. BIN doc/images/package.png
  36. BIN doc/images/page_green.png
  37. BIN doc/images/page_white_text.png
  38. BIN doc/images/page_white_width.png
  39. BIN doc/images/plugin.png
  40. BIN doc/images/ruby.png
  41. BIN doc/images/tag_blue.png
  42. BIN doc/images/tag_green.png
  43. BIN doc/images/transparent.png
  44. BIN doc/images/wrench.png
  45. BIN doc/images/wrench_orange.png
  46. BIN doc/images/zoom.png
  47. +104 −0 doc/index.html
  48. +153 −0 doc/js/darkfish.js
  49. +18 −0 doc/js/jquery.js
  50. +142 −0 doc/js/navigation.js
  51. +94 −0 doc/js/search.js
  52. +1 −0 doc/js/search_index.js
  53. +228 −0 doc/js/searcher.js
  54. +543 −0 doc/rdoc.css
  55. +160 −0 doc/table_of_contents.html
  56. +323 −0 lib/integratedscaffold.rb
  57. +12 −0 lib/templates/actions/create.rb
  58. +10 −0 lib/templates/actions/destroy.rb
  59. +6 −0 lib/templates/actions/edit.rb
  60. +5 −0 lib/templates/actions/index.rb
  61. +6 −0 lib/templates/actions/integrated_view.rb
  62. +4 −0 lib/templates/actions/new.rb
  63. +45 −0 lib/templates/actions/parse_save_from_excel.rb
  64. +5 −0 lib/templates/actions/show.rb
  65. +14 −0 lib/templates/actions/update.rb
  66. +13 −0 lib/templates/application_helper.rb
  67. BIN lib/templates/assets/images/background.jpg
  68. BIN lib/templates/assets/images/download.png
  69. BIN lib/templates/assets/images/inner_texture.jpeg
  70. BIN lib/templates/assets/images/logo.png
  71. BIN lib/templates/assets/images/new.png
  72. BIN lib/templates/assets/images/upload.png
  73. BIN lib/templates/assets/images/welcome_icon_1.png
  74. BIN lib/templates/assets/images/welcome_icon_2.png
  75. BIN lib/templates/assets/images/welcome_icon_3.png
  76. BIN lib/templates/assets/images/welcome_icon_4.png
  77. BIN lib/templates/assets/images/welcome_image.png
  78. +233 −0 lib/templates/assets/javascripts/exclusions/fiddletabs.js
  79. +12 −0 lib/templates/assets/javascripts/exclusions/jquery.mousewheel.min.js
  80. +202 −0 lib/templates/assets/javascripts/exclusions/jquery.pageslide.js
  81. +2,475 −0 lib/templates/assets/javascripts/jquery.dataTables.min.js
  82. +107 −0 lib/templates/assets/stylesheets/base_classes.css.scss
  83. +77 −0 lib/templates/assets/stylesheets/exclusions/fiddletabs.css
  84. BIN lib/templates/assets/stylesheets/exclusions/images/Sorting icons.psd
  85. BIN lib/templates/assets/stylesheets/exclusions/images/back_disabled.jpg
  86. BIN lib/templates/assets/stylesheets/exclusions/images/back_enabled.jpg
  87. BIN lib/templates/assets/stylesheets/exclusions/images/favicon.ico
  88. BIN lib/templates/assets/stylesheets/exclusions/images/forward_disabled.jpg
  89. BIN lib/templates/assets/stylesheets/exclusions/images/forward_enabled.jpg
  90. BIN lib/templates/assets/stylesheets/exclusions/images/sort_asc.png
  91. BIN lib/templates/assets/stylesheets/exclusions/images/sort_asc_disabled.png
  92. BIN lib/templates/assets/stylesheets/exclusions/images/sort_both.png
  93. BIN lib/templates/assets/stylesheets/exclusions/images/sort_desc.png
  94. BIN lib/templates/assets/stylesheets/exclusions/images/sort_desc_disabled.png
  95. +513 −0 lib/templates/assets/stylesheets/exclusions/jquery_data_table.css
  96. BIN lib/templates/assets/stylesheets/images/Sorting icons.psd
  97. BIN lib/templates/assets/stylesheets/images/back_disabled.jpg
  98. BIN lib/templates/assets/stylesheets/images/back_enabled.jpg
  99. BIN lib/templates/assets/stylesheets/images/favicon.ico
  100. BIN lib/templates/assets/stylesheets/images/forward_disabled.jpg
  101. BIN lib/templates/assets/stylesheets/images/forward_enabled.jpg
  102. BIN lib/templates/assets/stylesheets/images/sort_asc.png
  103. BIN lib/templates/assets/stylesheets/images/sort_asc_disabled.png
  104. BIN lib/templates/assets/stylesheets/images/sort_both.png
  105. BIN lib/templates/assets/stylesheets/images/sort_desc.png
  106. BIN lib/templates/assets/stylesheets/images/sort_desc_disabled.png
  107. BIN lib/templates/assets/stylesheets/images/ui-bg_flat_0_aaaaaa_40x100.png
  108. BIN lib/templates/assets/stylesheets/images/ui-bg_flat_75_ffffff_40x100.png
  109. BIN lib/templates/assets/stylesheets/images/ui-bg_glass_55_fbf9ee_1x400.png
  110. BIN lib/templates/assets/stylesheets/images/ui-bg_glass_65_ffffff_1x400.png
  111. BIN lib/templates/assets/stylesheets/images/ui-bg_glass_75_dadada_1x400.png
  112. BIN lib/templates/assets/stylesheets/images/ui-bg_glass_75_e6e6e6_1x400.png
  113. BIN lib/templates/assets/stylesheets/images/ui-bg_glass_95_fef1ec_1x400.png
  114. BIN lib/templates/assets/stylesheets/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  115. BIN lib/templates/assets/stylesheets/images/ui-icons_222222_256x240.png
  116. BIN lib/templates/assets/stylesheets/images/ui-icons_2e83ff_256x240.png
  117. BIN lib/templates/assets/stylesheets/images/ui-icons_454545_256x240.png
  118. BIN lib/templates/assets/stylesheets/images/ui-icons_888888_256x240.png
  119. BIN lib/templates/assets/stylesheets/images/ui-icons_cd0a0a_256x240.png
  120. +3 −0 lib/templates/assets/stylesheets/information_page.css.scss
  121. +565 −0 lib/templates/assets/stylesheets/jquery-ui-1.8.17.custom.css
  122. +513 −0 lib/templates/assets/stylesheets/jquery_data_table.css
  123. +140 −0 lib/templates/assets/stylesheets/silverspoon.css.scss
  124. +4 −0 lib/templates/controller.rb
  125. +48 −0 lib/templates/file_uploader.rb
  126. +2 −0 lib/templates/helper.rb
  127. +80 −0 lib/templates/layouts/application.html.erb
  128. +85 −0 lib/templates/layouts/dummy_data.html.erb
  129. +14 −0 lib/templates/layouts/general_layout.html.erb
  130. +81 −0 lib/templates/layouts/information_page.html.erb
  131. +2 −0 lib/templates/layouts/pageslide_form_at.html.erb
  132. +85 −0 lib/templates/layouts/scaffold.html.erb
  133. +71 −0 lib/templates/layouts/welcome.html.erb
  134. +18 −0 lib/templates/migration.rb
  135. +54 −0 lib/templates/model.rb
  136. +37 −0 lib/templates/views/erb/_form.html.erb
  137. +6 −0 lib/templates/views/erb/edit.html.erb
  138. +32 −0 lib/templates/views/erb/index.html.erb
  139. +182 −0 lib/templates/views/erb/integrated_view.html.erb
  140. +6 −0 lib/templates/views/erb/new.html.erb
  141. +20 −0 lib/templates/views/erb/show.html.erb
  142. +363 −0 lib/thesilverspoon.rb
  143. +3 −0 lib/thesilverspoon/version.rb
  144. +40 −0 thesilverspoon.gemspec
@@ -0,0 +1,5 @@
+*.gem
+.bundle
+Gemfile.lock
+*~
+
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in thesilverspoon.gemspec
+gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'
+gemspec
+
149 README.md
@@ -0,0 +1,149 @@
+
+# The Silver Spoon
+
+Let your Rails App be born with a silver spoon in its mouth.
+
+This gem preps a new Rails app with some of the best Rails gems and Jquery sweetness available:
+
+* <b>Rails Admin</b> for System Management : https://github.com/sferik/rails_admin
+* <b>Devise</b> for Authentication : https://github.com/plataformatec/devise
+* <b>Cancan</b> for Authorization : https://github.com/ryanb/cancan
+* <b>Bootstrapped</b> for Layout Design : https://github.com/entropillc/bootstrapped
+* <b>NiftyGenerators</b> for Form Design : https://github.com/ryanb/nifty-generators
+* <b>Gritter</b> for Notifications : https://github.com/RobinBrouwer/gritter
+* <b>Carrierwave</b> for File Uploading : https://github.com/jnicklas/carrierwave
+* <b>Spreadsheet</b> for Excel File Handling : http://spreadsheet.rubyforge.org/
+
+The Silver Spoon takes care of the installation of these gems, and basic implementations of the functionalities. As long as you can live with the conventional defaults specified for these gems, you will be ready to go. If you need customization, you would need to understand the usage of each of these gems individually, which you will find at the respective gem homepages.
+
+Apart from this, The Silver Spoon also extends the scaffolding in your app.
+* It uses a combination of the Twitter-Bootstrap and Nifty-Generators to give aesthetically improved and more usable view templates.
+* Apart from the standard scaffold views, it also creates an AJAX driven integrated view which combines all the standard views into one.
+* It also adds schema stubs and standard validation options (uncomment these to use) to your models.
+
+##Note
+"Updated to use Bootstrap 2.0"
+
+
+## Installation
+
+
+The Silver Spoon works best if you use it in a new empty Rails App. It requires anything Rails 3.1.3 onwards.
+
+You can install it by simply adding the following lines to your Gemfile:
+
+```console
+gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'
+gem 'thesilverspoon'
+```
+
+Now run bundle install. After you have installed The Silver Spoon, you need to run the generator:
+
+```console
+rails generate thesilverspoon:install
+```
+
+Rails Admin will ask two questions, just press Enter to accept the defaults.
+Run <b>rake db:migrate</b> <u>and</u> <b>rake db:seed</b> to finish the installation.
+
+<b>N.B.</b> The db/seeds.rb file contains the creation code for the admin user. You can edit this before 'rake db:seed' to create your own admin credentials instead.
+
+## Setup
+
+Post installation, your app will have the following:
+
+* All the gems mentioned above with standard configurations initialized.
+* A model called _'User'_ and views (in the devise directory) for you to customize
+* An Ability model to enable *Cancan* for your authorization. You also get a admin user (email:admin@tss.com | password: secret) with administrative rights to the system. Remember to change the password before you deploy the app.
+* An Uploader Model in a uploaders directory and an uploading repository in /public to enable CarrierWave.
+* A Rails Admin interface at /admin. Login with the admin user credentials to use this section
+* A set of basic image assets which you can use or replace to quickly start off your app.
+
+The root location would have been mapped to welcome#index and the relevant controller-action would have been created. Delete public/index.html to access the root location.
+
+## Usage
+
+Naturally, you have access all the features that are available in each of the included gems. We recommend that you go through the documentation of the included gems to fully realize the amazing power these put into your hands.
+
+### Layouts
+The app has been started off with the standard Rails layout. The Silver Spoon allows you to manipulate layouts with the following commands:
+
+* To use the Nifty Generators style layout
+
+```console
+rails generate nifty:layout
+```
+
+* To use the the Bootstrapped layout
+
+```console
+rails generate bootstrapped:layout
+```
+
+* To revert back to the default Rails layout
+
+```console
+rails generate revert:layout
+```
+
+### Scaffolds
+
+The Silver Spoon gives you the option of four scaffold styles:
+
+* To use The Silver Spoon scaffold
+
+```console
+rails generate everything:scaffold Model [parameters]
+```
+
+This creates a special layout for the scaffold, over-riding your application layout. Besides the standard views, you can also use an integrated view at '/tablename_integrated_view'
+
+* To use the Nifty Generators scaffold
+
+```console
+rails generate nifty:scaffold Model [parameters]
+```
+
+* To use the the Bootstrapped scaffold
+
+```console
+rails generate bootstrapped:scaffold Model [parameters]
+```
+
+* To use the default Rails scaffold
+
+```console
+rails generate scaffold Model [parameters]
+```
+
+
+## Additional Information
+
+### Bug reports
+
+If you discover a problem with The Silver Spoon, we would like to know about it. However, please do *NOT* use the GitHub issue tracker. Send an email to the maintainers listed at the bottom of the README.
+
+### Starting with Rails?
+
+If you are building your first Rails application, we recommend you to *not* use The Silver Spoon. The Silver Spoon is an aggregation of a set of gems which require a good understanding of the Rails Framework. In such cases, we advise you to build everything from scratch, using the constituent gems of The Silver Spoon one at a time, to better understand their functions and super-powers.
+
+Once you have solidified your understanding of Rails and the Gems included here, we believe you will find that The Silver Spoon is a good starting point for new apps.
+
+### Ackowledgement and Disclaimer
+
+We stake no claim to having built or modified any of the Gems included in this package. They are included on an as-is-where-is basis and are subject to their own individual licenses, terms of usage, copyrights and disclaimers. We are not legal experts, so if we are treading on anybody's toes, please let us know and we will remove any components you have an objection to.
+
+Moreover, if you like The Silver Spoon, please consider leaving comments and compliments at the co-ordinates of the original Gem authors, for as they say, if we appear tall it is because we are standing on the shoulder of giants.
+
+Also, wanted to recommend the JetBrains RubyMine IDE, which we are in no way affiliated to, but which has been critical in our Rails learning path.
+
+### Maintainers
+
+* Rushabh Hathi (rushabh@ptotem.com)
+* Arijit Lahiri (arijit@ptotem.com)
+
+
+## License
+
+MIT License. Copyright 2012 Ptotem Learning Projects LLP. http://www.ptotem.com
+
@@ -0,0 +1,12 @@
+* this is a list with three paragraphs in
+ the first item. This is the first paragraph.
+
+ And this is the second paragraph.
+
+ 1. This is an indented, numbered list.
+ 2. This is the second item in that list
+
+ This is the third conventional paragraph in the
+ first list item.
+
+* This is the second item in the original list
@@ -0,0 +1 @@
+require "bundler/gem_tasks"
@@ -0,0 +1,145 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
+
+<title>module &lt; - RDoc Documentation</title>
+
+<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
+
+<script type="text/javascript">
+ var rdoc_rel_prefix = "./";
+</script>
+
+<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
+<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
+<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
+<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
+<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
+<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
+
+
+<body id="top" class="module">
+<nav id="metadata">
+ <nav id="home-section" class="section">
+ <h3 class="section-header">
+ <a href="./index.html">Home</a>
+ <a href="./table_of_contents.html#classes">Classes</a>
+ <a href="./table_of_contents.html#methods">Methods</a>
+ </h3>
+</nav>
+
+
+ <nav id="search-section" class="section project-section" class="initially-hidden">
+ <form action="#" method="get" accept-charset="utf-8">
+ <h3 class="section-header">
+ <input type="text" name="search" placeholder="Search" id="search-field"
+ title="Type to search, Up and Down to navigate, Enter to load">
+ </h3>
+ </form>
+
+ <ul id="search-results" class="initially-hidden"></ul>
+</nav>
+
+
+ <div id="file-metadata">
+ <nav id="file-list-section" class="section">
+ <h3 class="section-header">Defined In</h3>
+ <ul>
+ <li>lib/templates/helper.rb
+ </ul>
+</nav>
+
+
+ </div>
+
+ <div id="class-metadata">
+
+
+
+
+ </div>
+
+ <div id="project-metadata">
+ <nav id="fileindex-section" class="section project-section">
+ <h3 class="section-header">Pages</h3>
+
+ <ul>
+
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
+
+ <li class="file"><a href="./Gemfile~.html">Gemfile~</a>
+
+ <li class="file"><a href="./README_rdoc.html">README</a>
+
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
+
+ <li class="file"><a href="./doc/README_rdoc.html">README</a>
+
+ </ul>
+</nav>
+
+ <nav id="classindex-section" class="section project-section">
+ <h3 class="section-header">Class and Module Index</h3>
+
+ <ul class="link-list">
+
+ <li><a href="./Everything.html">Everything</a>
+
+ <li><a href="./Everything/Scaffold.html">Everything::Scaffold</a>
+
+ <li><a href="./The_silver_spoon.html">The_silver_spoon</a>
+
+ <li><a href="./The_silver_spoon/Install.html">The_silver_spoon::Install</a>
+
+ <li><a href="./<.html"><</a>
+
+ <li><a href="./ApplicationHelper.html">ApplicationHelper</a>
+
+ <li><a href="./Create.html">Create</a>
+
+ <li><a href="./FileUploader.html">FileUploader</a>
+
+ <li><a href="./Object.html">Object</a>
+
+ <li><a href="./Thesilverspoon.html">Thesilverspoon</a>
+
+ </ul>
+</nav>
+
+ </div>
+</nav>
+
+<div id="documentation">
+ <h1 class="module">module <</h1>
+
+ <div id="description" class="description">
+
+ </div><!-- description -->
+
+
+
+
+ <section id="5Buntitled-5D" class="documentation-section">
+
+
+
+
+
+
+
+
+ <!-- Methods -->
+
+ </section><!-- 5Buntitled-5D -->
+
+</div><!-- documentation -->
+
+
+<footer id="validator-badges">
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
+</footer>
+
Oops, something went wrong.

0 comments on commit 19b8eb3

Please sign in to comment.