Displaying 20 results from an estimated 20000 matches similar to: "Single view over multiple tables"
2015 Apr 07
0
Thank you for scheduling your online payment
E-mail Security Information.
Dear
Thank you for scheduling your recent credit card payment as an
attachment. Your payment in the amount of 3898.96 will be credited to
your credit card account (CREDIT CARD) ending in 3057 on 04/07/2015.
Now that you're making your payment online, are you aware of all the
convenient ways you can manage your account online?
* SEE STATEMENTS - Choose
2015 Apr 07
0
Thank you for scheduling your online payment
E-mail Security Information.
Dear
Thank you for scheduling your recent credit card payment as an
attachment. Your payment in the amount of 3898.96 will be credited to
your credit card account (CREDIT CARD) ending in 0727 on 04/07/2015.
Now that you're making your payment online, are you aware of all the
convenient ways you can manage your account online?
* SEE STATEMENTS - Choose
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 21
3
help... why can''t Iuse data from two tables in the same view
I am new to Rails and Ruby, and to OO languages, and seem to be making a
very silly mistake somewhere here. Can anybody help?
I am trying to write an application which involves ''exercises'', each of
which consists of several ''templates''. This is based on MySQL tables
with these names. I have models and controllers, built with the Rails
Scaffold, for both
2007 May 30
2
Bug? Filter chain halted as [#<ActionController::Filters::..
OK so I''ve been trying to follow the tutorial here:
http://rails.homelinux.org/
When I simply do "scaffold: category" in the controller.rb, everything
works fine. BUT after I generate the controllers and other files using
scaffold AS A SCRIPT (script/generate scaffold categories), DESTROY (or
DELETE) does not work for any record in a table. This is the error I
got:
Processing
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 Nov 04
0
newbie: Single Table Inheritance
Hello,
I have been experimenting with Single Table Inheritance as described in the More Active Record chapter in Agile Development with Rails.
I have started with an object model with three classes x, y and z (for brevity), where y < x and z < y. (I will want to extend this model further to subclass y with other classes.)
I have created a table called x (plural) in the database with
2006 Aug 09
1
Displaying data from multiple models in a single view
I''m new to Ruby on Rails and I''m working on a simple app that manages
serial numbers/product keys for software.
I have three models and database tables setup:
Categories
Products
Serials
I''ve setup a view that shows each category on its own page. On a
category page, I''d like to have listed all of the products that belong
to that category along with all of
2005 Dec 20
3
Single controller to browse things in categories
First off, hi, I''m [obviously] new :O)
Please excuse my question as I''m sure it''s been answered, but I can''t
find it anywhere.
I have a table of categories:
id name
1 Foo
2 Bar
I have things which belong_to categories:
id category_id subject date
1 1 my subject 07/09/2004
and Further classifications which belong_to categories:
id category_id name
1 1 More
2007 Jul 22
4
single table inheritance problem
Hallo,
I am having a very strange Problem with STI in my application.
setup:
- two tables one called "wikis" on called "categories" with a hbtm
relationship.
- the wikis table is the sti one with a model PageWiki being extended
from Wiki (and the correspondig type column)
Following happens:
- server restart
- get :wikis, :show_pages
- in show_pages the first line says
2005 Dec 21
0
Category/subcategory CRUD
Hello there! This is my first post! ;)
I''m starting on ruby on rails, so I have many doubts about it!
I''m trying to create a system that uses categories/subcategories.
I created a scaffold for a table that has the following fields:
- id int(11)
- name varchar(50)
- keyname varchar(50)
- visible enum(''0'',''1'') default ''0''
-
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
All,
I have ordered AWDWR and am anxiously awaiting its arrival. In the
meantime I still am playing with ROR using radrails. I have a few
questions ...
I create a table named customers with the following details:
Field Type Null Key Default Extra
id int(11) NO PRI auto_increment
customer_name varchar(50) NO
inbound_retention int(11) NO
outbound_retention int(11) NO
unix_admin_email
2006 Jan 05
0
Re: html generated from scaffold
On Jan 5, 2006, at 9:02 AM, Jim wrote:
>
> Question 1: In a scaffold-generated view, wouldn''t it be better to
> generate more user friendly rhtml and code? I mean, it generates a
> loop
> that goes through each column in the database table and generates html
> table columns from these. I''m sure it''s very efficient and has
> hyper-ruby-coolness,
2006 Apr 15
7
New to rails - scaffold command , how to get related items?
Ahoy,
I was able to follow the tutorials and build a simple to-do list program
with Items and Categories and have the related tables link up w/ the
default "scaffold :Items" command plus custom defenitions.
Then I erased all of that and tried rebuilding the program using the
ruby script/generate scaffold Item (and category) command.
Now the templates look like
"
<% for
2006 Mar 01
1
question
Hello all!
I would like to get an admin interface for my shopping cart app
up and running using rails. The admin interface will be used for
Customers, Products, Catggories, ect management. My db schema reflects
the above mention tables names. The question I have is could I use the
scaffold feature this way:
(eg)---ruby script/generate scaffold Products Customers Categories
Admin?
2006 Apr 21
6
How access to the tables whitout a model
i have a table called Products whit a model product, but in the view i
need show the category od the product, but whitout a model of
categories...
--
Posted via http://www.ruby-forum.com/.
2006 Mar 09
3
Building a model from a database view
Hi,
I''m trying to use rails to build a model from a database view.
I get this output
C:\dev\v6\project>ruby script/generate scaffold Assignment
...
error Before updating scaffolding from new DB schema, try creating a
tab
le for your model (Assignment)
Is this not possible in Rails? It would be *really* helpful for my
application.
-------------- next part --------------
An
2006 Jul 16
2
Can scaffold do tall tables instead of wide?
I''m trying to get data in rows instead of columns by default.
The default scaffold behavior is to create an initial table layout with
column headers along the top. In some cases this creates really wide
tables which require horizontal scrolling. Is there a parameter I can
use with scaffolding or a hack to get the header cells along the left
side of the table instead?
I''m
2007 Mar 22
2
method to display the result of find (..) in a view
I''ve been trying to write a method that effectively displays the result
of a find() for say.. my Customer model.
What i''ve come up with is this:
1. The controller
My main controller first makes the query via the model
class MainController < ApplicationController
def index
order =
2006 Mar 24
0
merging models/views with scaffolding
Allo,
Just started playing around with RoR/scaffolding and have been
impressed so far. However, it seems to create a 1:1 relationship
between Controllers and Models and the basic CRUD actions -- I need to
CRUD two models from the same views and actions.
I have:
Book model
Book controller, with create/edit/show/destroy/list actions and the
scaffold-gen''ed views.
Category model
Category