Message from discussion
last saved record not retrieving .
Received: by 10.68.213.103 with SMTP id nr7mr3656816pbc.7.1352120080525;
Mon, 05 Nov 2012 04:54:40 -0800 (PST)
X-BeenThere: rubyonrails-talk@googlegroups.com
Received: by 10.68.190.100 with SMTP id gp4ls23714586pbc.9.gmail; Mon, 05 Nov
2012 04:54:04 -0800 (PST)
Received: by 10.68.253.129 with SMTP id aa1mr1978961pbd.17.1352120044452;
Mon, 05 Nov 2012 04:54:04 -0800 (PST)
Date: Mon, 5 Nov 2012 04:54:03 -0800 (PST)
From: Fahim Patel <pafa...@gmail.com>
To: rubyonrails-talk@googlegroups.com
Message-Id: <aaa1ae39-8bf3-4b27-a5e4-581a86b0531f@googlegroups.com>
In-Reply-To: <CAL=0gLtJVsa305hTwSKEXupQ-nHAesmZh_wURKpSRxZ4r3wGTw@mail.gmail.com>
References: <aceefae6-5055-478a-94fe-bdca72c4b163@googlegroups.com>
<CAL=0gLsCpu3ickSasUN2c0P3WGi=zdwJnfT-sx+JsZgFgS8Quw@mail.gmail.com>
<077a0ad6-ac49-46aa-8084-a1ba93e38076@googlegroups.com> <CAL=0gLtY7-wtsrxuYJGRuZDUSP0EOp25rPGqjJe9dBi376j2AA@mail.gmail.com>
<3dc7a05e-bee8-47d8-ad91-719908e6e5da@googlegroups.com> <e7c2f411-b0bf-4881-806f-3c26f424f2b2@googlegroups.com>
<CAL=0gLtJVsa305hTwSKEXupQ-nHAesmZh_wURKpSRxZ4r3wGTw@mail.gmail.com>
Subject: Re: [Rails] last saved record not retrieving .
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_1683_29318936.1352120043262"
------=_Part_1683_29318936.1352120043262
Content-Type: multipart/alternative;
boundary="----=_Part_1684_16528388.1352120043263"
------=_Part_1684_16528388.1352120043263
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
On Monday, November 5, 2012 1:22:32 PM UTC+5:30, Colin Law wrote:
>
> On 5 November 2012 06:54, Fahim Patel <paf...@gmail.com <javascript:>>
> wrote:
> >
> >
> > On Saturday, November 3, 2012 7:05:47 PM UTC+5:30, Fahim Patel wrote:
> >>
> >>
> >>
> >> On Saturday, November 3, 2012 7:00:23 PM UTC+5:30, Colin Law wrote:
> >>>
> >>> On 3 November 2012 12:40, Fahim Patel <paf...@gmail.com> wrote:
> >>> >
> >>> >
> >>> > On Saturday, November 3, 2012 5:20:35 PM UTC+5:30, Colin Law wrote:
> >>> >>
> >>> >> On 3 November 2012 11:46, Fahim Patel <paf...@gmail.com> wrote:
> >>> >> >
> >>> >> > Hi all,
> >>> >> >
> >>> >> >
> >>> >> > from last 1 hour i am facing one problem.
> >>> >> >
> >>> >> > I have written a code for creating user and show them in index
> page
> >>> >> > after
> >>> >> > save.
> >>> >> >
> >>> >> > Code is working perfectly but on index page i am getting all
> record
> >>> >> > till
> >>> >> > second last record saved, but i am not getting current record
> which
> >>> >> > is
> >>> >> > saved.
> >>> >> >
> >>> >> > But in database my last record is saved successful.
> >>> >> >
> >>> >> >
> >>> >> > But when i restart the server , than on index page all record
> come
> >>> >> > with
> >>> >> > the
> >>> >> > last record .
> >>> >> >
> >>> >> > I dont know why this all is happening ?
> >>> >>
> >>> >> Have a look at the Rails Guide on debugging, it will show you
> >>> >> techniques that you can use to debug your code.
> >>> >>
> >>> >> Colin
> >>> >
> >>> >
> >>> > Hi Colin,
> >>> >
> >>> > Thanks for reply.
> >>> > I use pry.
> >>> > I Debug the good , when i use binding.pry my index object select all
> >>> > records
> >>> >
> >>> > but when i remove binding.pry and start to create new record than
> same
> >>> > issue
> >>> > i am facing.
> >>> >
> >>> > Last record is not coming
> >>>
> >>> Then use some of the other techniques of debugging - insert debug code
> >>> to print information about what is going on in the console for
> >>> example. Print @admins.count for example in the controller index
> >>> action to try and tie down where the problem lies. The first thing to
> >>> determine is whether it the view is not displaying the last record or
> >>> whether @admins does not include all the records.
> >>>
> >>> Are you using the latest version of the database gem? What is it?
> >>> Look in Gemfile.lock to find out.
> >>>
> >>
> >> I puts @admins.count it give me correct counting on controller and
> when i
> >> pass the object
> >> to index view same thing is happening .
> >> I am using Postgres and as you say i will delete Gemfile.lock and run
> the
> >> bundle.
> >>
> >> Hope for the best
> >>>
> >>> Colin
> >
> >
> > Hi Colin,
> > Still facing a problem. Table count giving me accurate counting ,
> >
> > but
> > @admins = AdminUser.all
> > give me records till last restart server.
> >
> > I don't know why this all is happening ?
>
> I asked what gem you are using for database access, you have not told
> us. Possibly best to post Gemfile, Gemfile.lock and databsae.yml
> here. Also tell us which version of ruby and which version of rails
> and which operating system you are using.
>
> Also please do not send me a copy of your emails, just send it to the
> list. I do not need two copies. Thanks.
>
> Colin
>
>
#######################Gem file.lock################################
GEM
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
actionmailer (3.2.4)
actionpack (= 3.2.4)
mail (~> 2.4.4)
actionpack (3.2.4)
activemodel (= 3.2.4)
activesupport (= 3.2.4)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activemodel (3.2.4)
activesupport (= 3.2.4)
builder (~> 3.0.0)
activerecord (3.2.4)
activemodel (= 3.2.4)
activesupport (= 3.2.4)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.4)
activemodel (= 3.2.4)
activesupport (= 3.2.4)
activesupport (3.2.4)
i18n (~> 0.6)
multi_json (~> 1.0)
acts-as-taggable-on (2.3.3)
rails (~> 3.0)
addressable (2.3.2)
albino (1.3.3)
posix-spawn (>= 0.3.6)
ansi (1.4.3)
arel (3.0.2)
bcrypt-ruby (3.0.1)
blogit (0.5.0)
RedCloth (>= 4.2.9)
acts-as-taggable-on (>= 2.2.1)
albino (>= 1.3.3)
jquery-rails
kaminari (>= 0.13.0)
nokogiri (>= 1.5.0)
redcarpet (>= 2.0.1)
builder (3.0.4)
cancan (1.6.8)
capybara (1.1.3)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
childprocess (0.3.6)
ffi (~> 1.0, >= 1.0.6)
chronic (0.6.7)
chunky_png (1.2.6)
client_side_validations (3.2.1)
coderay (1.0.8)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.4.0)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
compass-rails (1.0.3)
compass (>= 0.12.2, < 0.14)
cucumber (1.2.1)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
cucumber-rails (1.3.0)
capybara (>= 1.1.2)
cucumber (>= 1.1.8)
nokogiri (>= 1.5.0)
database_cleaner (0.9.1)
diff-lcs (1.1.3)
em-websocket (0.3.8)
addressable (>= 2.1.1)
eventmachine (>= 0.12.9)
email_spec (1.4.0)
launchy (~> 2.1)
mail (~> 2.2)
erubis (2.7.0)
eventmachine (1.0.0)
execjs (1.4.0)
multi_json (~> 1.0)
factory_girl (4.1.0)
activesupport (>= 3.0.0)
factory_girl_generator (0.0.3)
factory_girl_rails (4.1.0)
factory_girl (~> 4.1.0)
railties (>= 3.0.0)
ffaker (1.15.0)
ffi (1.1.5)
friendly_id (4.0.9)
fssm (0.2.9)
gherkin (2.11.5)
json (>= 1.4.6)
growl (1.0.3)
guard (1.5.3)
listen (>= 0.4.2)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
guard-livereload (1.1.0)
em-websocket (>= 0.2.0)
guard (>= 1.5.0)
multi_json (~> 1.0)
guard-rspec (2.1.1)
guard (>= 1.1)
rspec (~> 2.11)
hike (1.2.1)
hirb (0.7.0)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.1.3)
railties (>= 3.1.0, < 5.0)
thor (~> 0.14)
json (1.7.5)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
launchy (2.1.2)
addressable (~> 2.3)
libv8 (3.3.10.4)
libwebsocket (0.1.5)
addressable
listen (0.5.3)
lumberjack (1.0.2)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.1)
mime-types (1.19)
mini_magick (3.4)
subexec (~> 0.2.1)
minitest (4.2.0)
multi_json (1.3.7)
nokogiri (1.5.5)
pg (0.14.1)
pg_search (0.5.7)
activerecord (>= 3)
activesupport (>= 3)
polyglot (0.3.3)
posix-spawn (0.3.6)
pry (0.9.10)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.3.1)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.4)
actionmailer (= 3.2.4)
actionpack (= 3.2.4)
activerecord (= 3.2.4)
activeresource (= 3.2.4)
activesupport (= 3.2.4)
bundler (~> 1.0)
railties (= 3.2.4)
rails3-jquery-autocomplete (1.0.10)
rails (~> 3.0)
railties (3.2.4)
actionpack (= 3.2.4)
activesupport (= 3.2.4)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (0.9.2.2)
rb-readline (0.4.2)
rdoc (3.12)
json (~> 1.4)
recaptcha (0.3.4)
redcarpet (2.2.2)
rspec (2.11.0)
rspec-core (~> 2.11.0)
rspec-expectations (~> 2.11.0)
rspec-mocks (~> 2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.3)
diff-lcs (~> 1.1.3)
rspec-mocks (2.11.3)
rspec-rails (2.11.4)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.11.0)
rubyzip (0.9.9)
sass (3.2.2)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
selenium-webdriver (2.26.0)
childprocess (>= 0.2.5)
libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
shoulda-matchers (1.4.1)
activesupport (>= 3.0.0)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
sitemap_generator (3.4)
builder
slop (3.3.3)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
subexec (0.2.2)
therubyracer (0.10.2)
libv8 (~> 3.3.10)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
turn (0.9.6)
ansi
tzinfo (0.3.34)
uglifier (1.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
whenever (0.7.3)
activesupport (>= 2.3.4)
chronic (~> 0.6.3)
wicked (0.3.0)
activesupport (>= 3.0.7)
rails (>= 3.0.7)
xpath (0.1.4)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
bcrypt-ruby
blogit
cancan
capybara
client_side_validations
coffee-rails (~> 3.2.1)
compass-rails
cucumber-rails
database_cleaner
email_spec
execjs
factory_girl
factory_girl_generator
factory_girl_rails
ffaker
friendly_id (~> 4.0.1)
growl
guard-livereload
guard-rspec
hirb
jquery-rails
launchy
mini_magick
minitest
pg
pg_search
pry
rails (= 3.2.4)
rails3-jquery-autocomplete
rb-readline
recaptcha
rspec-rails
sass-rails (~> 3.2.3)
selenium-webdriver
shoulda-matchers
simplecov
sitemap_generator
therubyracer
turn
uglifier (>= 1.0.3)
whenever
wicked
OS - Ubunto 11.10
Ruby version - ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
Raills Version - rails 3.2.4
###################database yml###################3
# PostgreSQL. Versions 8.2 and up are supported.
#
# Install the pg driver:
# gem install pg
# On Mac OS X with macports:
# gem install pg --
--with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem 'pg'
#
development:
adapter: postgresql
database: app_development
pool: 5
username: app_app
password: app
encoding: utf8
host: localhost
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
#host: localhost
#port: 5432
# Schema search path. The server defaults to $user,public
#schema_search_path: myapp,sharedapp,public
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
# The server defaults to notice.
#min_messages: warning
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
adapter: postgresql
encoding: utf8
database: app_test
pool: 5
username: app_app
password: app
host: localhost
production:
adapter: postgresql
encoding: utf8
database: app_production
pool: 5
username: app_app
password: app
host: localhost
cucumber:
<<: *test
> >>>
> >>>
> >>>
> >>>
> >>> >
> >>> > Thanks
> >>> >>
> >>> >>
> >>> >> > Code below
> >>> >> >
> >>> >> >
> >>> >> > ######## controller code
> >>> >> > class AdminUsersController < ApplicationController
> >>> >> > def new
> >>> >> > @admin = AdminUser.new
> >>> >> > end
> >>> >> >
> >>> >> > def index
> >>> >> > @admins = AdminUser.all
> >>> >> > end
> >>> >> >
> >>> >> > def create
> >>> >> > @admin = AdminUser.new(params[:admin_user])
> >>> >> > if @admin.save
> >>> >> >
> >>> >> > redirect_to admin_users_path
> >>> >> > else
> >>> >> > render "new"
> >>> >> > end
> >>> >> > end
> >>> >> > end
> >>> >> >
> >>> >> > ######## new view############
> >>> >> > <%= form_for @admin do|f|%>
> >>> >> >
> >>> >> > First Name
> >>> >> > <%= f.text_field :first_name%>
> >>> >> > <%= submit_tag"Create"%>
> >>> >> > <% end %>
> >>> >> > ######## index view############
> >>> >> > <%= @admins%>
> >>> >> >
> >>> >> > ##############model
> >>> >> > nothing in model
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > Hope you all understand the problem .
> >>> >> >
> >>> >> >
> >>> >> > Thanks
> >>> >> >
> >>> >> > Regards
> >>> >> > Fahim Babar Patel
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> > You received this message because you are subscribed to the
> Google
> >>> >> > Groups
> >>> >> > "Ruby on Rails: Talk" group.
> >>> >> > To post to this group, send email to rubyonra...@googlegroups.com.
>
> >>> >> > To unsubscribe from this group, send email to
> >>> >> > rubyonrails-ta...@googlegroups.com.
> >>> >> > To view this discussion on the web visit
> >>> >> > https://groups.google.com/d/msg/rubyonrails-talk/-/-TdNVrabhvAJ.
> >>> >> > For more options, visit https://groups.google.com/groups/opt_out.
>
> >>> >> >
> >>> >> >
>
------=_Part_1684_16528388.1352120043263
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<br><br>On Monday, November 5, 2012 1:22:32 PM UTC+5:30, Colin Law wrote:<b=
lockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;borde=
r-left: 1px #ccc solid;padding-left: 1ex;">On 5 November 2012 06:54, Fahim =
Patel <<a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=
=3D"uMtxYap3PhEJ">paf...@gmail.com</a>> wrote:
<br>>
<br>>
<br>> On Saturday, November 3, 2012 7:05:47 PM UTC+5:30, Fahim Patel wro=
te:
<br>>>
<br>>>
<br>>>
<br>>> On Saturday, November 3, 2012 7:00:23 PM UTC+5:30, Colin Law w=
rote:
<br>>>>
<br>>>> On 3 November 2012 12:40, Fahim Patel <<a>paf...@gmail.=
com</a>> wrote:
<br>>>> >
<br>>>> >
<br>>>> > On Saturday, November 3, 2012 5:20:35 PM UTC+5:30, Co=
lin Law wrote:
<br>>>> >>
<br>>>> >> On 3 November 2012 11:46, Fahim Patel <<a>paf.=
....@gmail.com</a>> wrote:
<br>>>> >> >
<br>>>> >> > Hi all,
<br>>>> >> >
<br>>>> >> >
<br>>>> >> > from last 1 hour i am facing one problem.
<br>>>> >> >
<br>>>> >> > I have written a code for creating use=
r and show them in index page
<br>>>> >> > after
<br>>>> >> > save.
<br>>>> >> >
<br>>>> >> > Code is working perfectly but on index page =
i am getting all record
<br>>>> >> > till
<br>>>> >> > second last record saved, but i am not getti=
ng current record which
<br>>>> >> > is
<br>>>> >> > saved.
<br>>>> >> >
<br>>>> >> > But in database my last record is saved succ=
essful.
<br>>>> >> >
<br>>>> >> >
<br>>>> >> > But when i restart the server , than on inde=
x page all record come
<br>>>> >> > with
<br>>>> >> > the
<br>>>> >> > last record .
<br>>>> >> >
<br>>>> >> > I dont know why this all is happening ?
<br>>>> >>
<br>>>> >> Have a look at the Rails Guide on debugging, it w=
ill show you
<br>>>> >> techniques that you can use to debug your code.
<br>>>> >>
<br>>>> >> Colin
<br>>>> >
<br>>>> >
<br>>>> > Hi Colin,
<br>>>> >
<br>>>> > Thanks for reply.
<br>>>> > I use pry.
<br>>>> > I Debug the good , when i use binding.pry my index ob=
ject select all
<br>>>> > records
<br>>>> >
<br>>>> > but when i remove binding.pry and start to create new=
record than same
<br>>>> > issue
<br>>>> > i am facing.
<br>>>> >
<br>>>> > Last record is not coming
<br>>>>
<br>>>> Then use some of the other techniques of debugging - inser=
t debug code
<br>>>> to print information about what is going on in the console=
for
<br>>>> example. Print @admins.count for example in the cont=
roller index
<br>>>> action to try and tie down where the problem lies. T=
he first thing to
<br>>>> determine is whether it the view is not displaying the las=
t record or
<br>>>> whether @admins does not include all the records.
<br>>>>
<br>>>> Are you using the latest version of the database gem? &nbs=
p;What is it?
<br>>>> Look in Gemfile.lock to find out.
<br>>>>
<br>>>
<br>>> I puts @admins.count it give me correct counting on cont=
roller and when i
<br>>> pass the object
<br>>> to index view same thing is happening .
<br>>> I am using Postgres and as you say i will delete Gemfile.lock =
and run the
<br>>> bundle.
<br>>>
<br>>> Hope for the best
<br>>>>
<br>>>> Colin
<br>>
<br>>
<br>> Hi Colin,
<br>> Still facing a problem. Table count giving me accurate counting ,
<br>>
<br>> but
<br>> @admins =3D AdminUser.all
<br>> give me records till last restart server.
<br>>
<br>> I don't know why this all is happening ?
<br>
<br>I asked what gem you are using for database access, you have not told
<br>us. Possibly best to post Gemfile, Gemfile.lock and databsae.yml
<br>here. Also tell us which version of ruby and which version of rai=
ls
<br>and which operating system you are using.
<br>
<br>Also please do not send me a copy of your emails, just send it to the
<br>list. I do not need two copies. Thanks.
<br>
<br>Colin
<br>
<br></blockquote><div><br></div><div>#######################Gem file.lock##=
##############################</div><div><div>GEM</div><div> remote: =
https://rubygems.org/</div><div> specs:</div><div> RedCl=
oth (4.2.9)</div><div> actionmailer (3.2.4)</div><div> &=
nbsp; actionpack (=3D 3.2.4)</div><div> mail (~&=
gt; 2.4.4)</div><div> actionpack (3.2.4)</div><div> &nbs=
p; activemodel (=3D 3.2.4)</div><div> activesupp=
ort (=3D 3.2.4)</div><div> builder (~> 3.0.0)</div><=
div> erubis (~> 2.7.0)</div><div>  =
; journey (~> 1.0.1)</div><div> rack (~> 1.4.0)</=
div><div> rack-cache (~> 1.2)</div><div>  =
; rack-test (~> 0.6.1)</div><div> sprockets (=
~> 2.1.3)</div><div> activemodel (3.2.4)</div><div> &=
nbsp; activesupport (=3D 3.2.4)</div><div> build=
er (~> 3.0.0)</div><div> activerecord (3.2.4)</div><div>&nb=
sp; activemodel (=3D 3.2.4)</div><div> ac=
tivesupport (=3D 3.2.4)</div><div> arel (~> 3.0.2)</=
div><div> tzinfo (~> 0.3.29)</div><div> =
activeresource (3.2.4)</div><div> activemodel (=3D 3.2=
.4)</div><div> activesupport (=3D 3.2.4)</div><div>&nbs=
p; activesupport (3.2.4)</div><div> i18n (~> =
0.6)</div><div> multi_json (~> 1.0)</div><div> =
acts-as-taggable-on (2.3.3)</div><div> rails (~=
> 3.0)</div><div> addressable (2.3.2)</div><div> &nbs=
p; albino (1.3.3)</div><div> posix-spawn (>=3D 0.3.6=
)</div><div> ansi (1.4.3)</div><div> arel (3.0.2)=
</div><div> bcrypt-ruby (3.0.1)</div><div> blogit=
(0.5.0)</div><div> RedCloth (>=3D 4.2.9)</div><div>=
acts-as-taggable-on (>=3D 2.2.1)</div><div> &=
nbsp; albino (>=3D 1.3.3)</div><div> jquery-r=
ails</div><div> kaminari (>=3D 0.13.0)</div><div>&nb=
sp; nokogiri (>=3D 1.5.0)</div><div> r=
edcarpet (>=3D 2.0.1)</div><div> builder (3.0.4)</div><div>=
cancan (1.6.8)</div><div> capybara (1.1.3)</div>=
<div> mime-types (>=3D 1.16)</div><div> =
nokogiri (>=3D 1.3.3)</div><div> rack (>=
=3D 1.0.0)</div><div> rack-test (>=3D 0.5.4)</div><d=
iv> selenium-webdriver (~> 2.0)</div><div> &nb=
sp; xpath (~> 0.1.4)</div><div> childprocess (0.3.6)=
</div><div> ffi (~> 1.0, >=3D 1.0.6)</div><div>&n=
bsp; chronic (0.6.7)</div><div> chunky_png (1.2.6)</div=
><div> client_side_validations (3.2.1)</div><div> =
coderay (1.0.8)</div><div> coffee-rails (3.2.2)</div><div>&nb=
sp; coffee-script (>=3D 2.2.0)</div><div> &nb=
sp; railties (~> 3.2.0)</div><div> coffee-script (2.2.0)</d=
iv><div> coffee-script-source</div><div> &=
nbsp; execjs</div><div> coffee-script-source (1.4.0)</div><div=
> compass (0.12.2)</div><div> chunky_png (=
~> 1.2)</div><div> fssm (>=3D 0.2.7)</div><div>&n=
bsp; sass (~> 3.1)</div><div> compass-rails (=
1.0.3)</div><div> compass (>=3D 0.12.2, < 0.14)</=
div><div> cucumber (1.2.1)</div><div> buil=
der (>=3D 2.1.2)</div><div> diff-lcs (>=3D 1.1.3)=
</div><div> gherkin (~> 2.11.0)</div><div> &nb=
sp; json (>=3D 1.4.6)</div><div> cucumber-rails (1.3=
.0)</div><div> capybara (>=3D 1.1.2)</div><div> =
; cucumber (>=3D 1.1.8)</div><div> nok=
ogiri (>=3D 1.5.0)</div><div> database_cleaner (0.9.1)</div=
><div> diff-lcs (1.1.3)</div><div> em-websocket (=
0.3.8)</div><div> addressable (>=3D 2.1.1)</div><div=
> eventmachine (>=3D 0.12.9)</div><div> =
email_spec (1.4.0)</div><div> launchy (~> 2.1)</div=
><div> mail (~> 2.2)</div><div> erubis =
(2.7.0)</div><div> eventmachine (1.0.0)</div><div>  =
; execjs (1.4.0)</div><div> multi_json (~> 1.0)</div=
><div> factory_girl (4.1.0)</div><div> act=
ivesupport (>=3D 3.0.0)</div><div> factory_girl_generator (=
0.0.3)</div><div> factory_girl_rails (4.1.0)</div><div> =
factory_girl (~> 4.1.0)</div><div> rai=
lties (>=3D 3.0.0)</div><div> ffaker (1.15.0)</div><div>&nb=
sp; ffi (1.1.5)</div><div> friendly_id (4.0.9)</div><di=
v> fssm (0.2.9)</div><div> gherkin (2.11.5)</div>=
<div> json (>=3D 1.4.6)</div><div> grow=
l (1.0.3)</div><div> guard (1.5.3)</div><div> &nb=
sp; listen (>=3D 0.4.2)</div><div> lumberjack (>=
=3D 1.0.2)</div><div> pry (>=3D 0.9.10)</div><div>&n=
bsp; thor (>=3D 0.14.6)</div><div> guard-live=
reload (1.1.0)</div><div> em-websocket (>=3D 0.2.0)<=
/div><div> guard (>=3D 1.5.0)</div><div>  =
; multi_json (~> 1.0)</div><div> guard-rspec (2.1.1)=
</div><div> guard (>=3D 1.1)</div><div> =
rspec (~> 2.11)</div><div> hike (1.2.1)</div><div>&=
nbsp; hirb (0.7.0)</div><div> i18n (0.6.1)</div><div>&n=
bsp; journey (1.0.4)</div><div> jquery-rails (2.1.3)</d=
iv><div> railties (>=3D 3.1.0, < 5.0)</div><div>&=
nbsp; thor (~> 0.14)</div><div> json (1.7.5)<=
/div><div> kaminari (0.14.1)</div><div> ac=
tionpack (>=3D 3.0.0)</div><div> activesupport (>=
=3D 3.0.0)</div><div> launchy (2.1.2)</div><div> =
addressable (~> 2.3)</div><div> libv8 (3.3.10.4)</di=
v><div> libwebsocket (0.1.5)</div><div> ad=
dressable</div><div> listen (0.5.3)</div><div> lu=
mberjack (1.0.2)</div><div> mail (2.4.4)</div><div> &nbs=
p; i18n (>=3D 0.4.0)</div><div> mime-types (~=
> 1.16)</div><div> treetop (~> 1.4.8)</div><div>&=
nbsp; method_source (0.8.1)</div><div> mime-types (1.19=
)</div><div> mini_magick (3.4)</div><div> =
subexec (~> 0.2.1)</div><div> minitest (4.2.0)</div><div>&n=
bsp; multi_json (1.3.7)</div><div> nokogiri (1.5.5)</di=
v><div> pg (0.14.1)</div><div> pg_search (0.5.7)<=
/div><div> activerecord (>=3D 3)</div><div> &n=
bsp; activesupport (>=3D 3)</div><div> polyglot (0.3=
.3)</div><div> posix-spawn (0.3.6)</div><div> pry=
(0.9.10)</div><div> coderay (~> 1.0.5)</div><div>&n=
bsp; method_source (~> 0.8)</div><div> =
slop (~> 3.3.1)</div><div> rack (1.4.1)</div><div> &=
nbsp; rack-cache (1.2)</div><div> rack (>=3D 0.4)</d=
iv><div> rack-ssl (1.3.2)</div><div> rack<=
/div><div> rack-test (0.6.2)</div><div> ra=
ck (>=3D 1.0)</div><div> rails (3.2.4)</div><div> &nb=
sp; actionmailer (=3D 3.2.4)</div><div> actionpa=
ck (=3D 3.2.4)</div><div> activerecord (=3D 3.2.4)</div=
><div> activeresource (=3D 3.2.4)</div><div> &nbs=
p; activesupport (=3D 3.2.4)</div><div> bundler =
(~> 1.0)</div><div> railties (=3D 3.2.4)</div><div>&=
nbsp; rails3-jquery-autocomplete (1.0.10)</div><div> &n=
bsp; rails (~> 3.0)</div><div> railties (3.2.4)</div><div>&=
nbsp; actionpack (=3D 3.2.4)</div><div> a=
ctivesupport (=3D 3.2.4)</div><div> rack-ssl (~> 1.3=
.2)</div><div> rake (>=3D 0.8.7)</div><div> &n=
bsp; rdoc (~> 3.4)</div><div> thor (>=3D 0=
.14.6, < 2.0)</div><div> rake (0.9.2.2)</div><div> &n=
bsp; rb-readline (0.4.2)</div><div> rdoc (3.12)</div><div>&nbs=
p; json (~> 1.4)</div><div> recaptcha (0.3.4)=
</div><div> redcarpet (2.2.2)</div><div> rspec (2=
.11.0)</div><div> rspec-core (~> 2.11.0)</div><div>&=
nbsp; rspec-expectations (~> 2.11.0)</div><div> &nbs=
p; rspec-mocks (~> 2.11.0)</div><div> rspec-core (2.=
11.1)</div><div> rspec-expectations (2.11.3)</div><div> =
diff-lcs (~> 1.1.3)</div><div> rspec-mocks (2=
.11.3)</div><div> rspec-rails (2.11.4)</div><div> =
actionpack (>=3D 3.0)</div><div> activesuppo=
rt (>=3D 3.0)</div><div> railties (>=3D 3.0)</div=
><div> rspec (~> 2.11.0)</div><div> rub=
yzip (0.9.9)</div><div> sass (3.2.2)</div><div> s=
ass-rails (3.2.5)</div><div> railties (~> 3.2.0)</di=
v><div> sass (>=3D 3.1.10)</div><div> &=
nbsp; tilt (~> 1.3)</div><div> selenium-webdriver (2.26.0)<=
/div><div> childprocess (>=3D 0.2.5)</div><div> =
; libwebsocket (~> 0.1.3)</div><div> m=
ulti_json (~> 1.0)</div><div> rubyzip</div><div>&nbs=
p; shoulda-matchers (1.4.1)</div><div> activesup=
port (>=3D 3.0.0)</div><div> simplecov (0.7.1)</div><div>&n=
bsp; multi_json (~> 1.0)</div><div> si=
mplecov-html (~> 0.7.1)</div><div> simplecov-html (0.7.1)</=
div><div> sitemap_generator (3.4)</div><div> &nbs=
p; builder</div><div> slop (3.3.3)</div><div> spr=
ockets (2.1.3)</div><div> hike (~> 1.2)</div><div>&n=
bsp; rack (~> 1.0)</div><div> tilt (~&=
gt; 1.1, !=3D 1.3.0)</div><div> subexec (0.2.2)</div><div>&nbs=
p; therubyracer (0.10.2)</div><div> libv8 (~>=
3.3.10)</div><div> thor (0.16.0)</div><div> tilt=
(1.3.3)</div><div> treetop (1.4.12)</div><div> &=
nbsp; polyglot</div><div> polyglot (>=3D 0.3.1)</div=
><div> turn (0.9.6)</div><div> ansi</div><=
div> tzinfo (0.3.34)</div><div> uglifier (1.3.0)<=
/div><div> execjs (>=3D 0.3.0)</div><div> &nbs=
p; multi_json (~> 1.0, >=3D 1.0.2)</div><div> whe=
never (0.7.3)</div><div> activesupport (>=3D 2.3.4)<=
/div><div> chronic (~> 0.6.3)</div><div>  =
; wicked (0.3.0)</div><div> activesupport (>=3D 3.0.=
7)</div><div> rails (>=3D 3.0.7)</div><div> &n=
bsp; xpath (0.1.4)</div><div> nokogiri (~> 1.3)</div=
><div><br></div><div>PLATFORMS</div><div> ruby</div><div><br></div><d=
iv>DEPENDENCIES</div><div> bcrypt-ruby</div><div> blogit</div><=
div> cancan</div><div> capybara</div><div> client_side_va=
lidations</div><div> coffee-rails (~> 3.2.1)</div><div> comp=
ass-rails</div><div> cucumber-rails</div><div> database_cleaner=
</div><div> email_spec</div><div> execjs</div><div> facto=
ry_girl</div><div> factory_girl_generator</div><div> factory_gi=
rl_rails</div><div> ffaker</div><div> friendly_id (~> 4.0.1)=
</div><div> growl</div><div> guard-livereload</div><div> =
guard-rspec</div><div> hirb</div><div> jquery-rails</div><div>&=
nbsp; launchy</div><div> mini_magick</div><div> minitest</div><=
div> pg</div><div> pg_search</div><div> pry</div><div>&nb=
sp; rails (=3D 3.2.4)</div><div> rails3-jquery-autocomplete</div><div=
> rb-readline</div><div> recaptcha</div><div> rspec-rails=
</div><div> sass-rails (~> 3.2.3)</div><div> selenium-webdri=
ver</div><div> shoulda-matchers</div><div> simplecov</div><div>=
sitemap_generator</div><div> therubyracer</div><div> tur=
n</div><div> uglifier (>=3D 1.0.3)</div><div> whenever</div>=
<div> wicked</div></div><div><br></div><div><br></div><div>OS -=
Ubunto 11.10</div><div>Ruby version - ruby 1.9.2p290 (2011-07-=
09 revision 32553) [x86_64-linux]</div><div>Raills Version - rails 3.2.4</d=
iv><div><br></div><div>###################database yml###################3<=
/div><div><div># PostgreSQL. Versions 8.2 and up are supported.</div><div>#=
</div><div># Install the pg driver:</div><div># gem install pg</div>=
<div># On Mac OS X with macports:</div><div># gem install pg -- --wi=
th-pg-config=3D/opt/local/lib/postgresql84/bin/pg_config</div><div># On Win=
dows:</div><div># gem install pg</div><div># Ch=
oose the win32 build.</div><div># Install PostgreSQL a=
nd put its /bin directory on your path.</div><div>#</div><div># Configure U=
sing Gemfile</div><div># gem 'pg'</div><div>#</div><div>development:</div><=
div> adapter: postgresql </div><div> database: app_d=
evelopment</div><div> pool: 5</div><div> username: app_app=
</div><div> password: app</div><div> encoding: utf8 =
</div><div> host: localhost</div><div><br></div><div> # Connect=
on a TCP socket. Omitted by default since the client uses a</div><div>&nbs=
p; # domain socket that doesn't need configuration. Windows does not have</=
div><div> # domain sockets, so uncomment these lines.</div><div> =
; #host: localhost</div><div> #port: 5432</div><div><br></div><div>&n=
bsp; # Schema search path. The server defaults to $user,public</div><div>&n=
bsp; #schema_search_path: myapp,sharedapp,public</div><div><br></div><div>&=
nbsp; # Minimum log levels, in increasing order:</div><div> # =
debug5, debug4, debug3, debug2, debug1,</div><div> # log, noti=
ce, warning, error, fatal, and panic</div><div> # The server defaults=
to notice.</div><div> #min_messages: warning</div><div><br></div><di=
v># Warning: The database defined as "test" will be erased and</div><div># =
re-generated from your development database when you run "rake".</div><div>=
# Do not set this db to the same as development or production.</div><div>te=
st: &test</div><div> adapter: postgresql</div><div> encodin=
g: utf8</div><div> database: app_test</div><div> pool: 5</=
div><div> username: app_app</div><div> password: app<=
/div><div> host: localhost</div><div><br></div><div>production:</div>=
<div> adapter: postgresql</div><div> encoding: utf8</div><div>&=
nbsp; database: app_production</div><div> pool: 5</div><div> us=
ername: app_app</div><div> password: app</div><div> host: local=
host</div><div>cucumber:</div><div> <<: *test</div></div><div><=
br></div><div><br></div><div> </div><blockquote class=3D"gmail_quote" =
style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-l=
eft: 1ex;">>>>
<br>>>>
<br>>>>
<br>>>>
<br>>>> >
<br>>>> > Thanks
<br>>>> >>
<br>>>> >>
<br>>>> >> > Code below
<br>>>> >> >
<br>>>> >> >
<br>>>> >> > ######## controller code
<br>>>> >> > class AdminUsersController < ApplicationC=
ontroller
<br>>>> >> > def new
<br>>>> >> > @admin =3D AdminUser.new
<br>>>> >> > end
<br>>>> >> >
<br>>>> >> > def index
<br>>>> >> > @admins =3D AdminUser.all
<br>>>> >> > end
<br>>>> >> >
<br>>>> >> > def create
<br>>>> >> > @admin =3D AdminUser.new(param=
s[:admin_<wbr>user])
<br>>>> >> > if @admin.save
<br>>>> >> >
<br>>>> >> > redirect_to admin_users=
_path
<br>>>> >> > else
<br>>>> >> > render "new"
<br>>>> >> > end
<br>>>> >> > end
<br>>>> >> > end
<br>>>> >> >
<br>>>> >> > ######## new view############
<br>>>> >> > <%=3D form_for @admin do|f|%>
<br>>>> >> >
<br>>>> >> > First Name
<br>>>> >> > <%=3D f.text_field :first_name%>
<br>>>> >> > <%=3D submit_tag"Create"%>
<br>>>> >> > <% end %>
<br>>>> >> > ######## index view############
<br>>>> >> > <%=3D @admins%>
<br>>>> >> >
<br>>>> >> > ##############model
<br>>>> >> > nothing in model
<br>>>> >> >
<br>>>> >> >
<br>>>> >> >
<br>>>> >> > Hope you all understand the problem .
<br>>>> >> >
<br>>>> >> >
<br>>>> >> > Thanks
<br>>>> >> >
<br>>>> >> > Regards
<br>>>> >> > Fahim Babar Patel
<br>>>> >> >
<br>>>> >> >
<br>>>> >> >
<br>>>> >> >
<br>>>> >> >
<br>>>> >> > --
<br>>>> >> > You received this message because you are su=
bscribed to the Google
<br>>>> >> > Groups
<br>>>> >> > "Ruby on Rails: Talk" group.
<br>>>> >> > To post to this group, send email to <a>ruby=
onra...@googlegroups.com</a>.
<br>>>> >> > To unsubscribe from this group, send email t=
o
<br>>>> >> > <a>rubyonrails-ta...@<wbr>googlegroups.com</=
a>.
<br>>>> >> > To view this discussion on the web visit
<br>>>> >> > <a href=3D"https://groups.google.com/d/msg/r=
ubyonrails-talk/-/-TdNVrabhvAJ" target=3D"_blank">https://groups.google.com=
/d/<wbr>msg/rubyonrails-talk/-/-<wbr>TdNVrabhvAJ</a>.
<br>>>> >> > For more options, visit <a href=3D"https://g=
roups.google.com/groups/opt_out" target=3D"_blank">https://groups.google.co=
m/<wbr>groups/opt_out</a>.
<br>>>> >> >
<br>>>> >> >
<br></blockquote><div><br></div><div><br></div><div><br></div><div> </=
div>
------=_Part_1684_16528388.1352120043263--
------=_Part_1683_29318936.1352120043262--