similar to: default database schema and relationships

Displaying 20 results from an estimated 5000 matches similar to: "default database schema and relationships"

2007 Feb 03
7
Interesting radio button behavior with "onclick"
Hello: I have radio buttons like this: <% fields_for :goalhist do |g| %> <table> <tr> <td align=left><%= radio_button_tag (''duedate'', 0, checked = false, options = {:onclick => ""}) %> &nbsp;&nbsp;Start now </td> </tr> <tr id="detailed" style="display: none"><td colspan=2>
2006 Nov 28
11
New Rails Site: Wordie
My latest stupid web trick, built, with love, in Rails: http://wordie.org Make lists of words. See who else likes the same words. Basically, it''s a dating site. Built on thanksgiving while half-watching football and launched yesterday. In other words, half-baked, but I thought some of you might find it mildly amusing. John ____________________________ John McGrath Squirl: a site for
2007 Feb 04
10
where to install script.aculo.us ?
I''d like to try autocompletion, and my understanding based on AWDWR:2, and on various website tutorials, is that I should install the script.aculos.us javascript library. My question is how to do that. The instructions on their site tell me to "Put prototype.js, scriptaculous.js, builder.js, effects.js, dragdrop.js, slider.js and controls.js in a directory of your website,
2006 Nov 27
3
Power User Tipping Point: PHP to Ruby
I have been waiting for a tipping point to start using Ruby applications instead of PHP applications. My criteria include the availability of Ruby and RoR web hosts and Ruby equivalent applications readily available for PHP. I keep finding PHP applications to fill my needs but not Ruby applications or hosts offering Ruby support. For example, I use content management systems which are
2006 Oct 14
4
Editable data grid
Does anyone have a good recommendation for implementing an editable data grid (like a spreadsheet) based on a dbase table/model? What I would like is something similar to Google Spreadsheets. Thanks, Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,
2006 Nov 30
41
TDD killing my joy of Rails
I''ve been working through the book ''Beginning Ruby on Rails E-Commerce'' which is very heavy on Test Driven Development. As in, you have to write tests for scaffolding methods and validations and crap like that. And then they fail. And you KNOW its the test not the method. So you spend 2x the time writing a test that has to be adapted when requirements change. You
2007 Mar 04
2
Installing
I have skimmed through many web pages, how to''s and editorials, my final conclusion is that the programming language for this particular part of the program is going to be Ruby. There are many reasons: 1. Apple will support it in 10.5 2. There seems to be a lot of support for it in the Mac community 3. Ruby developers seem to be Mac people. 4. There is better documentation than
2006 Oct 26
3
reply-to address of this list
Could one of the admins maybe specify the reply-to address for this mailing list? It''s frustrating to realise you''ve just sent a message to an individual, having meant to send to list. Chris
2006 Nov 28
2
collection_select and selected_value
Hi, I am using collection_select to build a drop down list. I would like to have the current value selected. How can I do that? My current code is straight from the example in Pragmatic Programmers book [2nd ed, p480] copying here for reference. <%= @users = User.find(:all, :order => "name" ) form.collection_select(:name, @users, :id, :name) %> I went through the api docs
2006 Dec 05
5
Render :update and script tags
Hi All! I''m kind of new o ruby so please apologize my stupid questions on advanced... I''m using render :update do |page| page.replaca_html :element , :partial => ''apartial'' end This is working well, since I see in the page the following code: try { Element.update("element", ""); } catch (e) { alert(''RJS
2006 Nov 23
1
Script to restart webrick
Enjoy this little script to restart webrick: #!/bin/sh pid=$(ps -o pid,command | grep ''\<ruby script/server\>'' | awk ''{print $1}'') kill -9 $pid ruby script/server Run on prompt by entering: sh scriptname.sh -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Dec 11
1
assert_redirected_to error
I''m new to TDD in rails, I''m getting this weird error with assert_redirected_to. Here''s my test: def test_friendship_request_accept @request.session[:user] = users(:nathan).id get :accept, { :id => 1 } assert_redirected_to :controller => "/users/profile", :action => "index", :id => users(:nathan).id end When I run this I
2006 Dec 11
1
Using link_to_remote to add a record
I am trying to use link_to_remote to simply add a record to a database table called "ratings". I''ve seen some examples of this being done but can''t seem to get it to work. Any ideas about what I''m doing wrong? Here is what I have in my view: <%= link_to_remote( "1", {:url => { :controller => "ratings", :action =>
2006 Nov 23
1
Problem with image caching
Hello, I have a little problem with image caching. I have a Student model which contains, for each student, a picture (picture_data for datas and picture_type for the content-type of the picture). As I want to save brandwidth, I followed the tutorial in http://manuals.rubyonrails.com/read/chapter/62 for caching pictures. If I test, as the tutorial suggests it, with curl, it''s working
2006 Apr 05
11
Managing a Rails project
Can someone point me to some good ideas about managing Rails development - like what would be a good way to document all the models and controllers and methods that might result if several people are prototyping on different parts of a system, and what might be a good structure for pushing back code into SVN as scaffolds are turned into real projects - that sort of thing. I''m
2007 Feb 16
13
negate the regexp in validates_format_of
Railsters: ActiveRecord''s validation system puts other database systems to shame. However, the newbies might not know how to write a regexp that excludes a match, instead of tests for it. Understand - I''m just asking this question to help them. I have been using Regexps since ''grep'' on Xenix! But the newbies here might not know how to do this:
2007 Feb 12
18
document "expando" properties broken in Konqueror
I noticed that some of my event handlers and scripts evaluated in ajax responses didn''t work in Konqueror (3.5.5). document.getElementsByClassName is not defined in these contexts. I can work around this, by saving document.getElementsByClassName in a (namespaced) global variable once and reassigning it before each use. Still, this misfeature is annoying and not restricted to this
2006 Nov 17
1
SQLite3 put a parse error in my schema.rb for timestamps
Railsers: I switched from MySQL to Sqlite3 for Test-Driven Development. It meant the difference between (Long term, I want to understand the db:migrate system well enough that I can run a long test, occassionally, that migrates everything to MySQL and retests it there. That will prevent nasty surprises at deployment time. But that''s not the current question!) Because I don''t
2007 Jan 05
8
Rails 1.2: Release Candidate 2
This is it. We''re a mere two shakes of a lamb''s tail from releasing the final version of Rails 1.2. But before we light the fireworks and pop the champaign, we''ll just do one itsy, bitsy, tiny test run. Like wearing protection glasses in downtown Copenhagen on New Year''s. You know, just for precautions. So please do give it a good run. We''re looking
2006 Aug 15
5
Set up a default route
Phlip wrote: > Can I fix it by adding a view called ''inventories''? That worked, because I have a sufficiently late version of MySQL. Next question. What does "Set up a default route" mean? When I read... http://wiki.rubyonrails.com/rails/pages/Routes ...it reminds me of the Apache documentation for mod_rewrite. I hope someone appreciates the candor of my