Displaying 20 results from an estimated 9000 matches similar to: "Maintaining DB reflection without scaffolding"
2006 Jan 12
17
Application.rb params
I need to check if a parameter is set so that I can build some information
for my application, but No matter how I format my if statement in the file "
Application.rb" it return the following error.
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]
Here is the line
if params[:day]
So we
2005 Apr 01
11
I want to blog!
This isn''t Rails or Ruby related, but I just need some advice and
thought I''d ask the bright individuals here. I want to start my own
blog but I''m not sure where to begin. I don''t want to get a blogger
account because I want to have my own domain. Blogger also doesn''t
have many features. My hosting service is 1AND1 so it supports php,
cgi and mysql.
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
2006 Jan 27
6
Scaffolding to use has_many and belongs_to ?
What does everyone on this list think about enhancing scaffolding
somehow so that a "has_many" relationship will automatically drop the
<select> box into the view to reference the "belongs_to" part of the
view?
I think scaffolding is great but I am always adding the <select> boxes
to reference the parent association. Do you think this would be
useful? just a
2006 Mar 09
8
Problem with scaffolding and table name
Hello, i''m new in ruby rails framework. I have the following problem. I
try to create a scaffold
for a certain model of my db, but since ruby rails doesn''t assume the
table name corectly (its incidents_reported )
i get errors ....
Besides renaming the table :) is there a way to ''tell'' ruby rails the
name of the table?
I haven''t been able to find any
2006 May 19
4
Lookup tables and scaffolding
It occurs to me as a missing feature that there''s no way to indicate a lookup
table relationship (as opposed to other sorts of foreign key relationships)
in Rails and that the scaffolding generator could recognise this lookup and
render a drop-down list automagically for the lookup table.
Say you have an Address and a State, and the State is a lookup table. In
addresses you have
2006 Feb 01
1
Scaffolding Extensions plugin and multiple HABTMs
Hello list,
For a school management application, I''ve got three tables:
- people
- subjects
- roles (e.g. ''Teacher'', ''Student'', ''Tutor'', ''Lecturer'', ...)
The HABTM relationship is 3-way, with the links being stored in the
people_roles_subjects table. A person can have a role in a subject,
but may have different
2007 Feb 21
4
Scaffolding plugins that support relationships. . .?
Hi All,
I''m looking for a quality scaffolding plugin. So far I''ve discovered
DryScaffolding and Streamlined. DryScaffolding doesn''t truly support
Rails 1.2.2 so I dropped that. Streamlined works, but is full of
quirks (e.g. many-to-many relationships not cascade updating
correctly, etc). Can anyone suggest a quality scaffolding plugin/
generator/framework that
2008 Sep 02
6
Scaffolding
Hello everyone,
Does scaffold still work in the new rails 2.0?
Thank you,
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2006 Jan 19
4
A simple scaffolding question
All,
When I generate scaffolding on my model, it doesn''t display all the
fields in the create and edit views. It populates the views with
text/char and date types, but omits any integer fields. Is this
normal behavior or a bug?
Thanks!
-Nick
2006 Jan 12
8
Scaffolding support for many-to-many editing (habtm)?
Like with simple table editing, there are also typical ways of how a
user usually interacts with one-to-many or many-to-many relations. For
example, one would show the fields of one row of table1 in the screen
and below a line-by-line view of all associated entries in table2. Then,
one could press an "Edit" button and add or delete rows from table2 to
this entry of table1,
2007 Sep 19
5
problem after scaffolding
hi guys,
I am having problems after scaffolding
I created a db called "requests"
and when i tried to execute the command
script/generate scaffold request
It gave me an error please make sure you have a database request created
before you do this
The db is obviously created; rails cant access it...
so I tried to hack i copied my view model and controller files from my
local deployment to
2006 Feb 13
2
Scaffolding
So what is "best practice" using scaffolding and then manipulating it to
work for you or starting from scratch?
Thanks.
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/0f16d567/attachment.html
2007 Dec 27
17
2.0 & "Agile Web Dev..." book
Just running through the first little project (depot) in ''Agile Web
Development with Rails''. It isn''t scaffolding like it says it should
in the book.
After running:
>rails -d mysql depot
then SQLing:
drop table if exists products;
create table products (
id int not null auto_increment,
title varchar(100) not null,
description text not null,
image_url varchar(200)
2005 Aug 18
10
Scaffolding, DRY and RHTML
Hello all, I''m working on a couple of Rails projects at the moment and
have noticed something that seems to go against the DRY principal.
Why, when scaffolding, are individual CRUD rhtml files created instead
of using one as a partial and having the others use that single
partial? This especially applies to the list rhtml. I am about to get
to the other operations and see how feasible
2006 Mar 23
2
Question About Scaffolding for My First Rails App
When using ruby to generate scaffolding, is there an easy way to add
features that would be useful for keeping track of has_many and
belongs_to relations? For example, suppose I have the following:
Users
Sites
Pages
Modules
Each user has many pages, each site has many pages, each page has many
modules, and also the belongs_to relation holds in the opposite order.
I''m using the
2007 Feb 07
2
Problems Generating Scaffolding
I am having trouble generating some of my scaffolding. I''m trying to
use PostgreSQL as my back-end. Some of my scaffolding generates with
no problem but for other parts I get this:
Before updating scaffolding from new DB schema, try creating a table
for your model
The tables do exist. At least I can see them from psql.
Here is the SQL I''m using to create my tables:
CREATE
2006 May 04
1
Ajas Scaffolding and RJS Templates the same thing?
Hey all,
I''m just starting in rails and am working on my first app. I need to do
inline editing for 2-15 rows of data on a page. I found Ajax
Scaffolding here:
http://www.ajaxscaffold.com/
And it is EXACTLY what I want in my app. But I''ve also been trying to
read a bit up on RJS Templates. Are they basically the same things
except RJS is built into rails or is the
2006 Jan 03
2
Scaffolding - changing number of records per page
People,
This is probably simple but I couldn''t find where to change the default
10 records per page for scaffolding . .
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
Mobile: +61:(0)411-185-652
Fax: +61:(0)2-8221-9599
E-mail: phil@pricom.com.au
2006 Jan 10
2
the dreaded error Before updating scaffolding from new DB s
Hi
I am pretty sure that this is a common nuby problem but I cannot figure
it out i try to run scfaoldong and get a error "Before updating
scaffolding from new DB schema, try creating a table for your model"
I have mysql set up and created the tables etc.
Derek
--
Posted via http://www.ruby-forum.com/.