Displaying 20 results from an estimated 4000 matches similar to: "when using scaffold flash[''notice'']"
2006 Apr 25
2
JRS problem
Hi all,
I''m playing with the new RJS stuff. Very cool!
But I have a problem. The following code works ok:
page.select(''div.blogcomment'').each do |element|
page.visual_effect :highlight, element
end
All div''s with class blogcomment are highlighted correctly. But I just
want the last elemen to be hightlighted. The following code is not
working:
2007 Feb 01
4
Automatically Indexing Associated Models
PROBLEM
I have two models, Blog and BlogComment. When a blog is initially
created, it has no comments. Upon creation, the title and body are
automatically added to the ferret index and directly searchable.
However, when a comment is added to a blog, that comment does not get
added to the index and is therefore not ferretable. The desired behavior
is that when a comment is added to a blog, that the
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 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 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
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
2006 Jan 12
9
Scaffold shows all attributes altough I use attr_accessible!
Hi all
I have a Model like this:
class Member < ActiveRecord::Base
attr_accessible :username, :email, :first_name, :last_name
end
I have created a scaffold using script/generate scaffold member members
Using the URL localhost:3000/members/edit/1 I can edit all attributes,
including created_at, lock_version etc.! But it should only show the
attributes I listed in attr_accessible!
What
2006 Apr 06
3
scaffold question
there are some things on a scaffold that i would like to use without the
whole thing. is it better to generate one and then cut it down to only
what you''ll use?
are all of the things in a scaffold available to just build by hand? for
instance, i have a scaffold for my users. in the list action, it has
@user_pages, so that you can put @user_pages.current.next or something
like that -
2006 Mar 23
6
easy scaffold question(s)
I''m doing very well with the Hibbs Rolling on Rails tutorial. I have an
easy question for my personal notes. I''m coming up with a simple framework
of steps for creating a basic database. It includes the following maxims to
make original app creation easy:
app_name = MySQL database name
SQL_tablename = model_name
model_name = controller-name
Is this going to work for getting
2006 Aug 16
2
About scaffold mean
Hello All!
I''m novice at ROR. Would you like to explain what mean such constuction in
Ruby.
1: class DemoController < ActionController::Base
2: scaffold :item
3: end
Is 2th line calling of method ''scaffold''? If it is so, when it called? For
all instances of class, or only for class?
I watch sources of ActionController, but don''t understand completely.
2006 Jul 28
4
ajax scaffold
someone using ajax scaffold ??
I''m using
@scaffold_columns = [
AjaxScaffold::ScaffoldColumn.new(self, { :name => "name" })
]
in my model...
I have a column named "name", but it''s not working, When I click in
"Create New" ajax indicator starts but not occurs . . .
someone can help me? tks
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys,
I''ve been able to successfully install the postgres adapter for a remote
database machine to get rails up. My machine is running on Fedora 2.
Rails version 1.1.2. Is my yml config correct? I am getting this error
when I execute script/generate scaffold service_contents content :
exists app/controllers/
exists app/helpers/
create app/views/spiel
exists