Displaying 20 results from an estimated 6000 matches similar to: "scaffold seems broken on show,edit,delete"
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
2005 Dec 31
7
Application Errors w/ layout & custom view pages
1) I get Rails Application Error when trying to use layout
test_controller
def list
layout "stdlayout"
end
in the views/test/layouts stdlayout.rhtml
<html>
<head><title>test</title></head>
</body>
<h1>Test</h1>
<%= content_for_layout %>
</body>
</html>
2) I get Rails Application Error when trying to use a separate
2006 Jan 14
11
accessing models from migrations
Ok, so now Users need to be associated with Organizations. I''ve
created a migration and added a ''organization_id'' column to the users
table. I want the default organization_id to be the first
Organization. So I have :default => Organization.find(:first). But
it''s complaining about not being able to find the constant
''Organization''.
Any
2006 Apr 05
3
"partitioning" table access
Hopefully someone can give me some advice on how to approach this
problem... I''m getting ready to start a large new project where
several different organizations would be working with a lot of tables.
Each table would have an organization_id field to signify which
organization owns that record. Organizations would only be able to
view/edit records they own. Potentially thousands of
2006 Jan 15
2
Multi Web Apps ...
Hi,
I''ve just setup Ruby on Rails using the guide I found at
http://fo64.com/articles/2005/10/20/rails-on-breezy
And was just wondering if it''s possible to host PHP on the same box as
well !?
I don''t seem to be able to find any info on this so any help would be
greatly appreciated.
I''m running Apache2 on Ubuntu Linux 5.10 (PPC version)
Thanks
Mic
--
2006 Jan 12
16
master detail problem
Hello all,
Has anyone done one of these? I''ve done similar things in java and php,
by having easy access to SQL statements. I am new to Ruby/Rails( I''ve
been at it for 10 days ) and thus far find it extremely confusing. I''ve
got a bit more of a handle on it from the Agile book that someone loaned
me, but I still find it hard to understand.
Anyway, I''ve got
2006 Jan 10
8
first ajax demo in Rails book - does it work for anyone?
Just tried the first AJAX example in the rails book (p.391-392, the
''word guessing'' thing), and the AJAX partial used seems to render as a
full page.
I''m not sure whether it''s
a) a partial bug
b) some interaction between ajax and partials
c) a change since the book came out
or
d) pilot error
I''ve checked the errata pages and it''s flagged up
2005 Dec 27
3
What is the best way of setting up the following model:
Hi, I am new to Rails (and Ruby) and for what i have seen sofar i like
it a lot! But i can''t figure out what the best sollution would be for
the following:
Lets say i want to setup a CRM system and i have to sorts of contacts:
Customers and Prospects. A part of the info is the same (addresses,
company info etc) for both customers an prospects and a part is
different.
What i would
2006 Jan 09
1
Newbie Question. I''m dumb with forms and foreign keys
For some reason I am just not able to get this.
I am trying to setup an organizational hierarchy, so I have a
organization which works fine. From there I want to be able to define
new divisions, departments, areas, etc.
For creating a Division, my original thought was to pass the
organization''s id to the new organization unit form, and then do a
Division.new(:organization_id =>
2008 Apr 30
4
Beginner mysql problem
I am new to rails and have come across a problem with a sample
application I was working on.
When trying to use rake migrate I got the error listed below.
my db file contains the following
class ContactDb < ActiveRecord::Migration
def self.up
create_table "people" do |t|
t.column "id", :integer
t.column "name",
2006 Oct 22
3
Date Helpers?
Does anyone have any ideas off the top of there head how to easily construct
a date helper as one would see in Rails?
Thanks,
Michael Gorsuch
http://www.styledbits.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20061022/7dda5a52/attachment.html
2013 Jan 02
8
Apache Passenger and Reloader
Hi Guys,
I just started playing with camping and so far it''s pretty awesomo.
After much messing around I was finally able to get Apache Passenger,
Camping and ActiveRecord to PostgreSQL working.
One thing I was wondering about, can I use reloader with Apache Passenger?
Always having to touch/rm a tmp/restart.txt to see changes or reloading
apache altogether is kinda a pain and I was
2007 Jul 19
5
Installing Maximizer Ver 7
Can anyone offer help with installing Maximizer Ver 7 under Wine with
latest Kubuntu? If you can, or have done this, I would love to hear from
you. I can get it to install but not run.
Thanks
--
* Ian Whitfield*/* */*
ZS6CDX*
Pretoria, South Africa
**/
/
2006 Jun 27
3
Capgem 0.1 Released
I''ve put up a first release of Capgem on Rubyforge. It''s available under the
MIT license.
Capgem is an extension to Capistrano which adds a pack task to Capistrano so
you can package up your Rails application as a Gem. This is useful if you
are in an environment where Capistrano''s remote deployment tools aren''t an
option. Capgem currently adds start and stop
2011 Jul 05
2
Using Capybara to select from a collection_select call (select tag)
I''m trying to use Capybara to test this. I have a step that goes
When I select "Price Chopper" from "Organization"
And the step definition is
When /^(?:|I )select "(.+)" from "(.+)"$/ do |value, field|
select(value, :from => field)
end
For some reason, I keep getting the error:
cannot select option, no select box with id,
2008 Feb 18
2
fonts
Hello every body, i?m testing some w32 apps with wine and I found some problems.
Trying to install ArcGIS (My first installation), I had the following error: Need internet explorer 6.
Well I installed IE 6, and continue installing ArcGIS, it was installed succesfully, but it installed Phyton, and throw some problems.
Well finally installed I run ArcGIS and the fonts were crazy, I didnt see
2005 Mar 21
3
routes.rb question.
I have a simple program that read all HTML files from a directory and
returns parts of the content and the file names which are HREFs to
those file.
I build the HREF string dynamicaly as PATH_TO_DOC_ROOT + "file_name".
My PATH_TO_DOC_ROOT = http://127.0.0.1:3000/docman/public/docs. So,
the final link that I am interested in might look like this:
2006 Jan 10
8
Noob: Child records not saved
Hi all,
happily coding along, but it seems a belongs_to record is not saved.
# Create some stuff
def create_project
@contact = Contact.new
@project = Project.new(@params[''project''])
@project_contact = ProjectContact.new(@params[''collect''])
@project.project_contact = @project_contact
contact =
2006 Mar 02
3
New to WINE
I am new user of WINE and need a little help.
1. From the best I can tell I have everything configured correctly.
However I can't figure out how to get a Windows screen to show up.
2. How do I get a WINE icon over to my desktop so as start it with a
mouse click(s)
Yes as you can tell I am very new to linux systems as I just installed
this system this afternoon, so please be genle with
2006 Jun 26
2
running lighttpd -> Recognition failed for "/"
i have tried several tutorials on the web for getting my app to run
under lighttpd and fastcgi..
my setup is fedora core 5..
i used this to get everything installed:
http://www.digitalmediaminute.com/howto/fc4rails/
but i kept getting errors, as the machine i am installing it is a remote
machine, i couldn''t get it to work right..
i next tried this: