similar to: Auto generated views for existing model.

Displaying 20 results from an estimated 20000 matches similar to: "Auto generated views for existing model."

2008 Oct 22
2
setting session id for first visit
I am logging web visits with a before_filter on the application controller. The issue I''m having is that the initial visit does not return a session id. I''m using the SqlSessionStore and the function MysqlSession.find_session(session.session_id) to retrieve the session id. If it doesn''t exist I use a -1. So looking in my visits table the initial visit always has -1 for
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
created a small patch.. looking for feedback / etc.. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5319-adding-options-to-erb-scaffold-generator-to-include-or-skip-custom-views-templates#ticket-5319-2 When I was working on customizing the erb scaffold generator to match the style and design I wanted to use by creating custom templates in / lib/templates/erb/scaffold I found
2006 Apr 20
1
generate scaffold not generating views
Hi! Sorry for the newbie question... I''m following the depot example in AgileWebDevelopmentWithRails. Stangelly, generating scaffolding using the command (page 53): ./script/generate scaffold Product Admin does not generate any .rhtml file, but just: exists app/controllers/ exists app/helpers/ exists app/views/admin exists test/functional/
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:
2005 Dec 17
3
Can scaffold generate listboxes in views? I''ve been unsuccessful.
I''ve created several different Rails applications but I''m running into the same trouble with each one. Lets say I create an app called Test. I type ''rails test'' and it generates the directory for me. Now I edit my database.yml file. Then I create a database with Postgresql by typing createdb test. Now I go into Postgresql by typing ''psql
2006 Aug 29
1
First elements of a list.
Suppose I have the following list: a <- strsplit(c("John;Smith", "Jane;Doe", "koda", "gunner"), ";") I want to get to these two vectors without looping... firstNames: c("John", "Jane", "koda", "gunner") lastNames: c("Jane", "Doe", NA, NA) Thanks cn [[alternative HTML
2007 Oct 19
0
Rails 2.0 Scaffolding based on an existing model??
After a fair bit of reading around and googling, it appears that I can not use script/generate scaffold to make a scaffold based on an existing model. Is this correct and if so is there a plugin that can achieve this in Rails 2.0? My thanks Anthony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
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 Jul 03
0
Scaffolds auto generate tables fields.. and Database amounts
Small story , I am moving over databases from Filemaker. In the filemaker databases are some like near 100 fields for one table. Luckly they are not relational to anything just big fat one page docs of fields.. First I am wondering if this is smart from a database speed point. Or if they should be broken up into many different database tables.. Though they all need to be on screen for the
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
2006 Apr 20
8
generate scaffold not generating views
Hi! Sorry for the newbie question... I''m following the depot example in AgileWebDevelopmentWithRails. Stangelly, generating scaffolding using the command (page 53): ./script/generate scaffold Product Admin does not generate any .rhtml file, but just: exists app/controllers/ exists app/helpers/ exists app/views/admin exists test/functional/
2008 Jan 17
4
multiple views, and some routers
Hi, I''m new to Rails (just a Java Programmer tired of having to configure a lot of xml''s and mapping classes just to make a simple page (...)) anyway, I''m experiencing some problems with routers, i''ve created a new project using Rails 2.0 and created a scaffold for users. so i have the following: users/new.html.erb ... (and the other pages created by the
2006 Jun 18
1
PostgreSQL Database Views with scaffold
Is there way to get the scaffold command to work with PostgreSQL database views? -- Posted via http://www.ruby-forum.com/.
2008 Apr 01
1
using label tags in scaffold views...how to get the method name?
hi, i want to use the <label> tag in the scaffold views. for a text field where the id is id="person_last_name" how can i get the person_last_name string programmaticaly to use it as a label parameter <label for="person_last_name"> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2008 Oct 15
9
Rails sessions working intermittently in IE7
Hello, We are developing in Rails 2.1.0 and serving the files with mongrels behind Apache. We are using SqlSessionStore. Recently I noticed that when logging into our site using IE7 the session doesn''t persist in some situations, and persists when it shouldn''t. For instance when I log in my info is maintained when visiting certain pages, but disappears on others. The info never
2005 Dec 26
0
File upload generated with scaffold ?
Hi, I''d like scaffold option to generate a file upload form and display skel.Is it possible ? Do I need to use specific plugins or is it included in current rails version ? What mysql field to use for file ? (Currently, I''m using scaffold ; it generates render :partial => ''form'' ; how to update that scheme for file upload ?) Regards, Fabian
2006 Mar 25
1
Nuby: HABTM and drag-and-drop views
I have two tables that have a HABTM relationship: Teacher has_and_belongs_to_many Groups, and Group has_and_belongs_to_many Teachers. This is what I want: select a Teacher, and then drag Groups from one box to another to assign them to the teacher. Or, select a group, and drag and drop Teachers to assign them to groups. All using AJAX, (off course). Only problem is, I don''t know
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,
2010 Jul 04
3
Generated By handling CRUD Scaffold
Good afternoon. I have two questions: First question: Can be defined at the time that I''m generating the scaffold the size of a string? For example name:string (50)? Second question: I wonder how to proceed correctly to include new fields starting at a CRUD generated by scaffold. Example: First step (I use): script/generate scaffold User name:string login:string Second step (I add
2007 Mar 29
2
L options in Dial() dont seem to work....
Hello Asterisk users, Can someone thwack me with a clue stick please? I am following the Asterisk TFOT book Dial() example trying to get the limit and announcements to work as per below. These settings seem to have no effect. There are no warning messages after 4 minutes or every 30 secs thereafter and the call lasts longer than 5 minutes. gunner*CLI> show dialplan [ Context