similar to: Scaffolds auto generate tables fields.. and Database amounts

Displaying 20 results from an estimated 10000 matches similar to: "Scaffolds auto generate tables fields.. and Database amounts"

2006 Aug 06
4
DRY Scaffolds
I''ve got 8 scaffolds, each one can be considered an ''item'', such as a blog, photo, etc. Using login_engine and user_engine, I list all blogs belonging to a user by saying: @user=session[:user] @blogs=@user.blogs.find(:all) but then let''s say I want to create an option where I want to slice it differently: @user=session[:user] if @someOption ==1
2006 Jun 15
2
Custom database forms input and display ??
I read through the entire agile web book and started over from scratch now to see if I can start my own project.. I need to understand how admin/new.rhtml <%= render :partial => ''form'' %> is creating the forms and telling it to input data into the tables I have it talking to a different table this time and in list.rhtml <%= column.human_name %> I can get it
2006 Mar 17
1
edge - scaffolds now pluralized?
Are my eyes going buggy, or did something recently change in Edge Rails so that now scaffolds are generated with pluralized controller/ helper/etc names? I peeked at the code in railties/lib/rails_generator/generators/components/scaffold/ scaffold_generator.rb around line 50, and it looks like there was a change there recently so that it now defaults to pluralized names. So why was this
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 May 03
5
Multiple Scaffolds
I''d like to create scaffolds for each of the tables in my database, but would like to access them below the path: localhost:3000/admin For example localhost:3000/admin/table1 localhost:3000/admin/table2 Where table1 and table2 would be the controller names respectively, calling their own list.rhtml, show.rhtml, edit.rhtml, etc.. Any recommendations on how/where to
2006 Jun 25
0
Uninitialized Constants in Scaffolds
I''ve just got the solution to a problem I''d been having. It looks like it''s quite common, so here goes: When creating a scaffold page (using <tt>script/generate scaffold ...</tt>) if you look at the pages it makes (through the server, http:\\127.0.0.1:3000...) all pages work except LIST, which complains of Uninitialized Constant [your model name]
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
2005 Nov 30
2
Missing scaffold features
Hello everyone, First off, I''m trying to generate a discussion here, not provoke an argument or get people upset. Please bear this in mind if/as you read on... To my mind, there''s 3 missing features from scaffolds that would make them a whole lot more useful. These are: - auto-generation of a drop-down list for inputting/updating has_many/belongs_to relationships between
2006 Jan 26
1
Simple question about :list method in scaffolds
The automatically generated scaffolds made code like this: def list @address_pages, @addresses = paginate :addresses, :per_page => 10 end which was fine, but I only want to return the logged-in user''s addresses. So I changed it to: def list @address_pages, @addresses = paginate :addresses, :per_page => 10, :conditions => [''user_id = ?'',
2007 Mar 19
1
Wine FileMaker 6.0 Calculated Date Fields
I am running FileMaker 6.0 via Wine on Ubuntu 6.10. I have a file/ table/whatever it is called Case.fp5 and another table called Actions.fp5. Case is a one to many relationship to Actions, related via the CaseID. Date Closed is calculated in Case: If Last(Actions::Action Type) = "Close" then Date Closed = Last(Actions::Date Created) (something like that since I can't actually see
2005 Dec 29
2
validation highlighting on non-scaffold fields
Hi all, I''m new to rails. I have created a bunch of CRUD code using scaffolds. I had to add code to the default output to account for fields that establish the relationships between tables. Everything works well, including the validation of the fields I added. However, I can''t get the highlighting to work for my fields when they fail validation and the view is redisplayed.
2006 Jul 18
1
Replacing scaffolds
Hi all, having a scaffold for a model, I''d like to replace some of the views that Rails offers me. When it''s showed the details of a particular model, I''d like to show a link to an action of the controller. What must I do?, Should I create a new show.rhtml view to get the dafault view replaced? -- Posted via http://www.ruby-forum.com/.
2006 Apr 16
0
scaffolding issue - new action defaults to list action
I''m creating a photo blog with ror. The front end has gone great, so now I''m working on the back end, and was playing with scaffolding. I generated these scaffolds: ruby script/generate scaffold Photo admin/photo ruby script/generate scaffold Camera admin/camera Then, in my routes, I added this line: map.connect ''/admin'',
2006 Aug 13
5
Newbie question: scaffold not working
I went through a tutorial at http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 to get started with RoR. I really like the idea of the scaffold construct, but I can''t seem to get it to work the way it was described in the tutorial. I''ve got a mysql database that is properly configured, and a table called ''quotes'' with a column called
2007 Jul 10
0
Ruby On Rails, Today's Hottest Web Framework, Now Supports FileMaker Server
Six Fried Rice Contact: Geoff Coffey Phone: 602-384-1804 Email: geoff-5v4lRIDW0s4umAx9uhQu3g@public.gmane.org Ruby On Rails, Today''s Hottest Web Framework, Now Supports FileMaker Server Six Fried Rice, a FileMaker Pro Services Provider, Releases Rfm, a Free Open Source FileMaker API for Ruby and Ruby on Rails. The buzz about Ruby on Rails can be heard all over the web. This world
2007 Jun 01
3
Newbie: Problem running FileMaker 8.5
Dear All I'm new to Linux, and even newer to Wine. So, please excuse... I've got a Dell D800 with both Linux and Windows installed. Linux is Debian Etch, Windows is XP. The reason for installing Wine was that I'd like to use FileMaker Pro 8.5 from within Linux. I've installed Wine to the Linux world by: sudo apt-get install wine This worked without problems. In the shell, I
2006 Mar 03
0
error running generate scaffold - doesn''t see table which is there
Hi I''m trying to get some basic stuff working from the "Agile Web Dev with ROR" book - chapter 6 "Create the Maintenance App". (On linux, mysql 4.1, ruby 1.8.4) I have the depot_development db created, and teh "products" table definitely exists. The user name and pw are correct in database.yml But I get this: <snip> daniel@roomatthetop:~/work/demo$
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 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 May 23
6
Help please. WINE suddenly quits.
Hi everyone, I am running ubuntu 5.10 (Breezy) and have the latest version of wine installed (from winehq). The application I'm having trouble with is Filemaker Pro 8. It installed without any problems. It opens without any problems. Everything looks normal. I can create a new database and open an existing one. Both work. However after a short period of experimenting (just generally