similar to: ActiveScaffold many to many relationships

Displaying 20 results from an estimated 40000 matches similar to: "ActiveScaffold many to many relationships"

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
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
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
2011 Aug 09
0
ActiveScaffold - custom show action
Hi all, I''ve added custom show action (as an action link - I want to use default one too). Everything renders well, but I''m missing a "Close" ([x]) button. So, I copied AS'' default _show.rhtml template and edited it a bit (just added custom output and removed label). However, when I click at "Close" I get error output: You have a nil object when you
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
2012 Jul 19
5
ActiveScaffold Export file - Send as Email
I am using Rails 1.2.3 and Active scaffold 1.1.1 My requirement is to send the export of users data weekly to the admin as email via cron. How can i automate the process of exporting csv and storing it at a place? So that i can pick it from there and attach to the email before sending? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the
2006 Jun 27
0
newbie question: one to one relationships in ROR
A newbie to ROR, I have come to my first problem. We have two tables lets call them toys and trucks that have a one to one relationship. Now toys has_one truck and truck belongs_to toy. I have created the basic scaffold for both tables. But in order to create a new truck the user must first create a toy. What I am trying to do is create on page where the user can enter the information that a
2006 Jun 06
1
Please Help with single table inheritance relationships
I''ve been searching the web, wikis, and more, and I haven''t turned up examples of how to have multiple entities in a single-table inheritance related to anything. I have an addresses table, but multiple entities can have Addresses: both Person (which has 2 addresses) and Retailer. I''ve been told that I need to use single-table inheritance, and this was my attempt:
2007 Oct 07
1
Streamlined/ActiveScaffold don't support has_many :through?
All, I hear tell that neither Streamlined nor ActiveScaffold support the use of has_many :through relationships in the sense that HM:T relationships will effectively be read-only in those frameworks. Does anyone know why this is? I assume that it has something to do with the way that the relationships are introspected on? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2012 May 08
1
One to many relationships
I was trying to make one to many relationships - between professors controller to rate_professors controller and used scaffold. it''s giving me this error- NoMethodError in RateProfessorsController#index undefined method `rate_professors'' for nil:NilClass app/controllers/rate_professors_controller.rb:7:in `index'' Request Parameters:
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,
2006 Mar 25
0
Self-Referential Many-To-Many relationships where the relationship itself has data.
Trying to model a bunch of users that have friends that are other users. clearly a job for has_and_belongs_to_many, but the trick is, they have ratings for their friends. I have gone through the Rails Recipes book, and it seems like I''m trying to combine the self-referential many-to-many recipe (12) and the many to many relationships where the relationship itself has data recipe (16). So
2008 Nov 20
3
Any progress on undirected self-referential many to many relationships?
I am going to re-ask a question that has been asked a few times in the past. What is the best way to represent an undirected self-referential many to many relationship. Trivial examples of this include an edge in an undirected graph, or a mutual friendship. Alice is a person Bob is a person Alice and Bob are friends of each other We have a whole bunch of extra information about their friendship
2012 Mar 04
3
Which command run after change Models
Hi: I''m reading and learning from the Rails tutorial at [1] but not building the sample application instead I''m trying to build my own. After generate all the migration and build the main classes for Models I made some modifications to them in order to build relationship between tables now I think that I need to run some command to generate the scaffold again with proper
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 Oct 29
2
UI drop down list pulled from database values in activescaffold
as i''m finding it difficult to override the form Ui elements using activescaffold -= i''m looking for a help to build a drop down list in UI (values pulled from databse through SQL query) and so user can select these valus while submitting to database. pls provide any example strictly using activescaffold plugin. thanks selvan-kalaiselvan
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
2009 Sep 12
3
Need help on Many to Many Relationships
Hi, Does anyone know where I can find a full step by step tutorial on Many to Many Relationships with Rails or can describe the steps in inserting data into the join tables, displaying the connections, etc.. - I don''t only need the model, but all the steps that you would use in the MVC architecture to make it work. I am a new to Rails and I cannot find a complete tutorial on all the
2006 Jul 03
0
Modelling Relationships as objects
DHH in Rails Confeerence pointed out that abstract relationships should be converted into concrete objects, CRUDying up relationships. An example would be class User < ActiveRecord::Base has_many :subscriptions has_many :news_categories, :through => :subscriptions end class NewsCategory < ActiveRecord::Base has_many :subscriptions has_many :users, :through => :subscriptions
2006 Aug 02
2
many-to-one relationship, do I need a second table?
Ok, to keep things short. Im wondering if I need a secondary relationship table to handle my many-to-one relationships. Here is an example of what I''ve written down. For instance say I want to find all of the people in a given location. class Location < AR:Base has_many :people end class Person < AR:Base belongs_to :location end My SQL tables look like: CREATE TABLE