Displaying 20 results from an estimated 7000 matches similar to: "About scaffold mean"
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone,
I''m a rails & ruby nuby, and this is my first post to the list.
Here''s my environment in case it helps diagnose my problem:
Ruby version
1.8.4 (powerpc-darwin8.6.0)
RubyGems version
0.8.11
Rails version
1.1.2
Active Record version
1.14.2
Action Pack version
1.12.1
Action Web Service version
1.1.2
Action Mailer version
1.2.1
Active Support version
1.3.1
I did
2003 Apr 16
2
Jackknife and rpart
Hi,
First, thanks to those who helped me see my gross misunderstanding of
randomForest. I worked through a baging tutorial and now understand the
"many tree" approach. However, it is not what I want to do! My bagged
errors are accpetable but I need to use the actual tree and need a single
tree application.
I am using rpart for a classification tree but am interested in a more
unbaised
2007 Jun 27
1
Active Scaffold controllers created dynamically at runtime?
Does anyone know how to link Rails'' routes into anonymous controller
classes created at runtime (defined with their superclass as
ActionController::Base)?
I''m trying to create a plugin for all of my projects that dynamically
creates an active_scaffold controller for each model. It would
essentially be like a scaffold_all_models for active_scaffold. I believe
the original
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
2002 Aug 05
1
constructing a formula
Dear Listers,
I am having trouble figuring out how to build a formula using a variable
list. For example, I have:
a _ data.frame(a=rnorm(1000))
a$b_rnorm(1000)+.5*a$a
a$c_rnorm(1000)+.5*a$b
a$d_rnorm(1000)+.5*a$b+.1*a$a
attach(a)
and I estimate,
lm(d ~ b+c+d)
BUT,
I wish to construct a generalized solution in which,
ListOfVar _ c('b','c','d')
The question is how
2005 Aug 08
7
Problems with ./scripts/generate scaffold
Hi all,
I''m new to rails after having used perl for most of these things, and am
trying to get my head around the generate script for a project playing
around
with.
If I do:
./scripts/generate controller Device
I get app/controllers/device_controller.rb
where I can then add:
scaffold :device
However, if I want to actually generate the scaffolding so I can make
some changes:
2005 Dec 31
6
What does this error mean when using scaffold?
Last login: Fri Dec 30 15:34:43 on ttyp1
source /private/var/tmp/folders.501/TemporaryItems/Locomotive.
1135999534.992790-16807
Welcome to Darwin!
frank-roccos-powerbook58:~ farocco$ source /private/var/tmp/folders.
501/TemporaryItems/Locomotive.1135999534.992790-16807
frank-roccos-powerbook58:~/Documents/receipts farocco$ script/
generate scaffold receipt receipt
2006 Mar 24
6
login forms , redirect_to and ajax-scaffold problems
Hi,
I have a standard type authentication technique direct from AWDWR, so there is a
before_filter :authorize_employee, :except => :login in my employees_controller.rb
the authorize_employee is in application.rb
def authorize_employee
unless session[:employee_id]
flash[:notice] = "Please log in"
# save the URL the user requested so we can hop
2006 Apr 24
3
quick q on script/generate scaffold
I want a scaffold to manager both products and users. To get the
products scaffold I used
script/generate scaffold Product Admin
if I use,
script/generate scaffold User Admin
will it overwrite my product admin controller? Would I be better off
doing
script/generate scaffold User User_Admin or something?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 28
5
simple scaffold question
How do I get scaffold to generate code for a table whos name is not plural
of the modelname I give to it. I.E., If I have an existing database, and
wish to generate scaffold code for existing tables, is this possible???
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Jul 26
3
newbie: Scaffold doesn''t pickup DB changes
I''m following along with the depot example in ''Agile Web Development'' and ran into a problem with Scaffold. I changed the MySQL table structure to add a few columns directly and also tried the migrate script to change the database after I got the initial scaffolding to work. However, I can''t seem to get the new columns to show up and am stumped as to how I can
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
2006 Mar 03
2
newbie scaffold question
I''ve got a database with several tables. I''d like to create scaffolding
for separate CRUD interfaces for several of these tables. I''m hoping
that the scaffold generator can create the CRUD code for all these
tables in ONE controller, but I don''t know how to tell it to do that, if
it can.
Can anyone verify if this is possible?
Thanks,
David
--
Posted via
2006 Jan 01
5
scaffold not working on Windows XP
Hello,
I did a fresh install of ruby182 and gem rails --include-dependencies
Now when I do:
rails receipts
cd receipts
ruby script\generate scaffold receipt receipt
rails does not create the views or controller.
What can I do?
Thanks
Frank
2006 Apr 21
6
when using scaffold flash[''notice'']
Hi,
When using the scaffold standard new / create methods, on successful
completion of creating a new database entry, is there any return
methods I cna pick up in a custom tempalte such as flash[''notice'']?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Jun 26
5
Multiple choice questions scaffold?
Hello all,
I''m in my second day of working through the various Ruby on Rails
tutorials, I''m already hugely impressed by the potential speed of
developing database driven sites, especially via the use of scaffolds.
Which brings me on to my first question (apologies if it''s a simple one,
but like I said it is only my second day!)
I am aiming to develop an application
2006 Jan 18
3
Documentation for scaffold / views
Apparently a scaffold creates at least one instance variable for views
to use, and if I override the scaffold then I must also explicitly
create that instance variable for the view. I''d like to know exactly
what work is performed by the scaffold so that I can know this when
over-riding the view. (OR, is it that the controller makes these
variables available by default?..)
EXAMPLE:
2006 Jan 13
4
missing foreign key fields in scaffold views
Is there any reason that foreign key fields do not show in any of the
scaffold views ?
project table:
id serial primary key,
category_id integer,
user_id integer,
name varchar,
morestuff varchar
foreign key (category_id) references categories(id),
foreign key (user_id) references users(id)
scaffold generated views only show name, morestuff fields
2006 Jan 08
4
scaffold uses link_to for destroy
Hi,
I wonder why scaffolding uses a link_to tag for the destroy links.
Seems like these should be POST requests with button_to. The Rails
book dedicates pages 335-337 to this very issue.
Peter
2006 Jul 28
2
Scaffold and Undercores in Tablenames
I am attempting to generate scaffolds on legacy tables that have
underscores in the name. Scaffold does not see the underscore. I have
tried a backslash escape but it no work. I have looked around but i
cannot find a way to make it work. It''s like this:
c:\railroad>ruby script/generate scaffold FOO_BAR
exists app/controllers/
exists app/helpers/
create