Displaying 20 results from an estimated 5000 matches similar to: "undefined method `scaffold' for AdminController:Class"
2010 Jun 14
7
"NoMethodError in AdminController#index" error
hi, im totally a newbie so i have got no idea whatsoever why i got this
error, the thing that happend was i was doing a little coding along with
the lynda.com rails series that i got this error.
well as u can see this is the error which i get on terminal, but there
is another one in browser too which says : "NoMethodError in
AdminController#index " u can see it in the picture here :
2006 Aug 17
6
NameError in AdminController#index building scaffold
I''m a pretty big newbie with ROR, but when following a tutorial I
encounter an ugly error when building a scaffold. Here is my
environment
Dev system:
- Windows XP
- java version "1.5.0_06"
- MySQL java version "1.5.0_06"
- Ruby 1.8.4
- Ruby Gems 0.9.0
- Gem install mysql
Successfully installed mysql-2.7.1-mswin32
Installing ri documentation for
2006 Apr 13
10
Code Igniter
Hi all,
I was just made aware of this:
<http://www.codeigniter.com>
I wonder where the inspiration comes from? Lots of very similar
concepts there ;)
I''ve only watched the intro movie so far, but very interesting.
jt
2006 Apr 03
2
undefined method `scaffold'' for #<LocationsController:0xb7a9e858>
Would anybody know why I get this error from this bit of code:
class LocationsController < ApplicationController
def index
scaffold :locations
end
end
This is the way that is demonstrated in the screencast for creating a
quick scaffold. I have done this before. However, I come back to
working with Ruby after about a month on something else and now it
gives this error.
Any
2008 Apr 30
1
NoMethodError in AdminController#index
I am reading Agile Web Development with Rails and after setting
everything up with the first application I get the following error:
NoMethodError in AdminController#index undefined method `scaffold
I then installed the plugin for scaffold and I got this error:
undefined method `paginate''
I have read on the web and in this group about installing The paginate
plugin but I cannot get it
2008 Jun 10
1
NameError in AdminController, uninitialized constant
Hi there basically following the "Agile Web Development With Rails, 2nd
Edition"
i followed the tutorial exaclty, worked fine, so i decided to change one
thing
on page 74 instead of:
ruby script/generate model product
i used:
ruby script/generate model propertys
and:
depot_a/db/migrate/001_create_products.rb
~/Rails/ecom/db/migrate$ cat 001_create_propertys.rb
class
2008 Jan 30
1
undefined method `scaffold'
Hello,
I have been busy for a while and now I am back to messing with rails.
Last time I tried to use scaffold i worked now I am getting this error.
Not really sure since I am using version 1.2.5 still
NoMethodError in BlogController#index
undefined method `scaffold'' for #<BlogController:0x506eb7c>
Session dump
flash: !map:ActionController::Flash::FlashHash {}
Thanks for any
2009 Jun 22
12
Rails Hosting: Slicehost vs. Rimuhosting
I know similar topics have been covered before, but I''d like to get a
more up-to-date Ruby developer''s opinions. (Please note that I''ve
read similar threads in this group and read a lot of hosting
comparison sites, even contacted both companies and am still having a
hard time making decisions. )
After reading about limitations with shared hosting plans, I decided
that
2006 Aug 16
44
Goodbye for now, RoR
I started a php-based website a few months ago with a buddy of mine on
netfirms.com. I was perusing their knowledge base and I came upon a
quick-start for something called Ruby on Rails. Since then I have immersed
myself in RoR. I''ve done the tutorials, I''ve purchased the books.
But, I could never get even a sample RoR app to work on netfirms. 500
server errors.
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
Before I dig in any further (since I have no idea where to go from
here...)
Has anyone been succcessful with 2.3.2, AS, and nested scaffolds?
I have the latest of AS and the render_component plugin via
% script/plugin install --force git://github.com/lackac/render_component.git
-r rails-edge
I have an AS user_controller:
active_scaffold :user do |config|
...
2008 Nov 11
1
variable frame rate for Theora
Hi there,
I have just read in the documentation that Theora doesn't support
variable frame rates. I don't know whether it will support it in the
near future and since I cannot code I don't really know whether this
would be easy to implement. But I'd ask you to consider implementing
variable frame rates.
The reason for that implementation would come from the much smaller size
2006 Jun 05
0
iteration A1 in ebook: scaffold gets: routing error
hi, on page 82 of second edition, getting stuck after making:
class AdminController < ApplicationController
scaffold :product
end
running the server and going to: http://localhost:3000/admin gets:
ActionController: Exception caught
routing error
Recognition failed for "/admin"
did i miss a step somewhere?
thanks
---
vice-chair http://ocjug.org/
2006 Jun 06
0
Re: [ocruby] iteration A1 in ebook: scaffold gets: routing error
At 02:42 AM 6/6/2006, you wrote:
>hi, on page 82 of second edition, getting stuck after
got past that, must have been doing something wrong. ended up writing
the script below:
thanks
set -x
base=i:/work
PATH=/cygdrive/$base:$PATH
name=depot
cd $base
rm -rf depot
ls
mysqladmin -f -u root drop ${name}_development
mysqladmin -u root create ${name}_development
mysqladmin -f -u root drop
2010 Dec 22
2
Please help with installing mysql gem to linux machine w/ xampp
Hello all,
I know this is not an uncommon question, but none of the
tutorials/tips solve my problem. I''ve got a linux machine running Ubuntu
10.4 with ruby, gem, rails, and xampp installed.
Now when I try to install the mysql gem (via: $sudo gem install mysql
-with-mysql-config=/opt/lampp/bin/mysql_config), I get:
Building native extensions. This could take a while...
ERROR: Error
2007 Aug 17
1
Scaffold (Agile Web Development With Rails)
What am I doing wrong here?
[app/controllers/admin_controller.rb]
class AdminController < ApplicationController
before_filter :authorize
def index
list
render :action => ''list''
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
2008 Mar 23
1
Object creation when the controller is a subclass of AdminController
I''ve finally determined that the best way to handle administration of
a model that displays publicly but is administered privately is
through subclassing but I''ve run in to pathing issues (I think) when
trying to create an instance of my model.
Let''s say I have a Book, and BookController is a sublcass of
AdminController so that I can create and delete Books via an Admin
2010 Mar 23
3
NoMethodError in AdminController#index
I am newb in ror. I''ve googled and found no concrete answer to my
problem below:
NoMethodError in AdminController#index
undefined method `scaffold'' for AdminController:Class
RAILS_ROOT: /home/darwin/Sites/music_library
Application Trace | Framework Trace | Full Trace
/home/darwin/Sites/music_library/app/controllers/admin_controller.rb:3
2007 Dec 10
15
Scaffolding for pre-existing database table in 2.0.1
Hi,
first of all I will apologize in advance for my presumably noobish
question, but I''m only starting to learn Rails and am a little
confused with all the changes in 2.0.1. There are as good as no
tutorials out yet and the 2 or 3 screencasts I''ve seen deal with the
creation of both the app and the database.
Now my problem is that I already have a database with a fair amount of
2011 Jun 12
3
Problem with undefined variable current_user
Hi everyone,
I''m working through the tutorial at the following link and attempting to
customise/adapt the lessons for my own slightly different application.
Link:
Ruby on Rails Tutorial: Learn Rails by Example | Ruby on Rails 3
Tutorial book and screencasts | by Michael Hartl
<http://ruby.railstutorial.org/ruby-on-rails-tutorial-book>
I''m currently trying to work
2012 Sep 11
4
Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com
hello people, i m new to rails and i m thinking of buying Ruby on Rails 3
Essential Training with Kevin Skoglund tutorial
http://www.lynda.com/Ruby-on-Rails-3-tutorials/essential-training/55960-2.html
but problem is the tutorial is created on 2010 oct => so its 2 yrs old
so my question it is fine to Buy these Tutorial in the changing rails world?
Please Help me
--
You received this