Displaying 20 results from an estimated 30000 matches similar to: "Application and Database Design"
2006 Apr 16
5
Newbie Problems with pluralization
Hi,
I have a many to many relationship incorporating the following tables:
taxes --> taxes_tax_groups --> tax_groups
I have a model named tax with the following declaration:
has_and_belongs_to_many :tax_groups
and I have a model named tax_group with the following declaration:
has_and_belongs_to_many :taxes
I am attempting to run the following unit test:
require
2006 Apr 20
2
Additional Fields in a Join Table
Hi,
I am creating an order management web application, and have run into an
issue over join tables. I am reading Agile Web Development and it says
that I can put additional fields within my join tables, and they give
the example of a date field.
I want to know if it is possible to do the following:
I have an orders table with the order information as well as an
orders_items table and an
2006 Jun 05
1
file_column & RMagick
Hi,
I have a site where I wish to upload a resize a picture, and store it in
the file system. The best solution that I have found for this so far is
using file_column. This was working great, for about an hour, but all of
the sudden I began to get the following error (only when i attempt to
resize).
NameError (undefined method `assoc'' for class `Magick::ImageList''):
2006 Jul 06
7
form_remote_tag submitting to an rjs file.
I have the following form that I am trying to use, but for some reason,
the form gets submitted with out the params values.
<%= form_remote_tag(:url => { :action => :add_item_to_order }) %>
<tr>
<td>
<%=collection_select(:order_item , :item_category_id,
@item_categories, :id, :name)%>
</td>
<td>
<%= text_field
2006 Apr 28
2
Ajax form error handling
Hi,
I have a customer add form in which i call form_remote_tag to update a
customer list within another div on my page.
I need to also, however, allow for proper error checking, and the issue
is that the form_remote_tag will only update a single div tag.
I have seen a few ways to deal with this, but I want to know what the
best way is, while still allowing the model to do all of the
2007 Mar 13
5
Question on application/database design for a application port to rails
Hi all
I am hoping that the experience and knowledge of this ''list'' will be
able to help me out with some design decisions I have to make while
porting a desktop app to rails.
Here is the scoop:
I am in the design process of porting a fairly large client/server app
to rails. Average data set is about 200 MB per database/server.
Altogether there are about 100 tables and about
2006 Jul 03
6
Rjs $("aaa").insertHtml is not a function error
Hi,
I''ve searched the list and found that someone had the same problem as me
http://lists.rubyonrails.org/pipermail/rails/2006-May/043760.html
I''m have in my page a link like this
<%= link_to_remote ("Add
#{image_tag(''add.png'')}",:url=>{:action=>''addProduct''})%>
and in my controller
def addProduct
..................
2006 May 03
1
error_messages_for when saving within another model
Hi,
I have this save routine:
def customer_address_create
customer_options
@customer = Customer.find(params[:id])
@customer.addresses.create(params[:address])
@saved = @customer.save
end
That passes to a rjs template like this:
if @saved
page.visual_effect :Fold, ''add_address''
page.replace_html ''addresses'', :partial =>
2006 Apr 24
8
Application Design
I have a question about how to implement a design in Rails. I will try to make this as easy to follow as possible. First, let''s say that I have an ''Orders'' table that has different statuses. The 3 statuses that I want to track are ''Submitted'', ''Approved'', and ''Purchased''.
I also have 3 users of this application.
2007 Dec 13
10
Version naming to use in a RoR proyect
Hi everyone,
I would need to know if RoR follow any policy for version naming; I
mean, something like linux´s kernel does or similar.
For instance, kernel uses numbers separated in groups by dots (i.e.
pre 2.6 - AA.BB.CC). These groups mean differents fixtures, bugs
fixed...
I will start a big proyect from scratch with rails and I want to
choose now a standart to use and avoid future problems
2012 Sep 15
10
Versioning of Views; Our Approach
My friend Ben Willis and I have developed a gem for the versioning of Rails
views.
https://github.com/bwillis/versioncake
The versioning is done by the naming convention. Image the following
series of files :
show.v3.json.jbuilder
show.v2.json.jbuilder
show.v1.json.jbuilder
create.v2.json.jbuilder
create.v1.json.jbuilder
The developer pre-defines all view versions in their config. When a
2008 Dec 18
5
distributing a rails application
What are the standard best practices for sharing your rails application
on the web?
As far as I can tell, you just delete the logs directory and clear out
the database.yml
What am I forgetting?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2008 May 14
3
New blog application post slugs
Hello. I''m creating my own RESTful blog app. I am wondering about
creating post slugs. I think Wordpress creates a slug at post
creation time and stores the string in the database, then uses that
for URLs.
I read about the acts_as_sluggable strategy (http://
agilewebdevelopment.com/plugins/acts_as_sluggable) but I don''t like
having a number (the ID) in the URL.
Any
2006 Apr 05
6
Howto add application-wide variables?
I suspect this is something I should know already but I can''t seem to
get it right, how can I create application wide variables and have them
accessible to all my controllers?
I tried creating a plugin and having my controller require a specific
method from that plugin to access its variables but that didn''t work, so
I am left scratching my head.
eg from plugin
2007 Feb 22
5
Combine ferret with database
Hello list,
I wonder if someone has some tips on joining a ferret search with a
database.
I have a rails project using a postgresql backend and I would like to
utilize the superb performance of ferret for fulltext searching.
The problem is that I have to joined the result with the database as
I have some user access rights to different documents to take into
account.
Does anyone have
2006 Jul 25
2
Authentication design/ideas
Hi all,
I''m using acts_as_authenticated for the front end facing part of my
site. I have a model called Customer. I now want to protect the admin
sides of things. I am thinking of using Ezra''s acl plugin
(http://opensvn.csie.org/ezra/rails/plugins/dev/acl_system2/README)
for this. My only problem is that I don''t want the model for admin
users to be called Customer,
2006 Mar 14
5
Dreamhost Database problems
I''m working on uploading my site to dreamhost. I just setup my
production database, and gave it a host name. It said that it was
successfully created. Now, it''s been like 25 minutes, and I still can''t
connect to it. Is that normal?
How can I get my tables created? Just wait it out? I''m trying to load
it in the browser, and it says "server not
2006 Aug 16
4
New Model Object from Existing Model Object
Hey Guys, need a hand again....
Lets say I have an Order... and an Order has Order Lines and Order_Lines
have Items...
I want to create a New Order, which would have New Order Lines with the same
Items...
Is there a fast / easy way to do this, w/o having to create a new order,
loop through all the order lines, and create them associating them with the
Items?
Any help would be great, thanks
--
2002 Jun 12
1
Error: Failed to initialise locking database
Greetings!
After successfully setting up the printer using my RedHat Linux 7.2 (using command-line interface), and after installing my ethernet card (again, using command-line interface), I've tried to setup my linux server to share the printer with Windows-based machines.
I thought I pretty much did everything right, but when I type a "smbstatus", I get the following:
>Samba
2015 Apr 05
4
[LLVMdev] Format of special case list for sanitizers
The documentation for the sanitizer special case list format[0] says,
> The meanining of * in regular expression for entity names is different - it is treated as in shell wildcarding.
In SpecialCaseList::parse, we see that this is just replacing * with .*:
// Replace * with .*
for (size_t pos = 0; (pos = Regexp.find("*", pos)) != std::string::npos;
pos +=