zandu 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ class DbsController < ApplicationController
3
3
  def show
4
4
 
5
5
  @name = params[:id]
6
- @model_name = @name.capitalize
6
+ @model_name = @name.camelize
7
7
  @content = eval(@model_name).all
8
8
 
9
9
  respond_to do |format|
@@ -1,46 +1,5 @@
1
- # class MyZanduGenerator < Rails::Generators::NamedBase
2
- # def add_my_crazy_routes
3
- # my_route = "match '/news', :to => 'bar_controller#foo_action'"
4
- # route my_route
5
- # end
6
- # end
7
-
8
- #require "net/http"
9
-
10
- # class MyZanduGenerator
11
-
12
- # @data_tables = ActiveRecord::Base.connection.tables
13
- # @posts = Post.all
14
- # puts @posts.inspect
15
-
16
-
17
- # end
18
-
19
1
  class ZanduInsertion
20
2
 
21
- # File.open("app/controllers/dbs_controller.rb","w") do |f|
22
- # f.puts "class DbsController < ApplicationController"
23
- # f.puts
24
- # f.puts " def show"
25
- # f.puts
26
- # f.puts ' puts "Hello"'
27
- # f.puts ' @name = params[:id]'
28
- # f.puts ' @model_name = @name.camelize'
29
- # f.puts ' puts @model_name'
30
- # f.puts ' @content = eval(@model_name).all'
31
- # f.puts ' puts @content.inspect'
32
- # f.puts
33
- # f.puts ' respond_to do |format|'
34
- # f.puts ' format.html # show.html.erb'
35
- # f.puts ' format.json { render json: @content }'
36
- # f.puts ' end'
37
- # f.puts
38
- # f.puts " end"
39
- # f.puts
40
- # f.puts "end"
41
- # end
42
-
43
- #File.new("app/controllers/dbs_controller.rb")
44
3
  File.open("app/controllers/dbs_controller.rb","w") do |f|
45
4
 
46
5
  srcFile = File.dirname(__FILE__) + "/tamplates/dbs_controller.rb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zandu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
12
+ date: 2012-10-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: A simple hello world gem
14
+ description: Gem to fetch data from databse
15
15
  email: nilekh.chaudhari@gmail.com
16
16
  executables: []
17
17
  extensions: []