search for: duxbury

Displaying 20 results from an estimated 46 matches for "duxbury".

2006 Jul 01
6
Sorting by an attribute on a associated table
So, I have a User has_many :profiles. The most recently dated profile is considered the current one. I need to sort these users by name, but the name attribute is a member of the associated table. Is there any easy way to do this other than with some ugly find_by_sql? Maybe a more general question - is there a common solution to sorting in Ruby? -- Posted via http://www.ruby-forum.com/.
2006 May 12
4
default value in text field
hi, This should be really simple, but i cant seem to find the answer anywhere!! In my _form.rhtml I have the following text field, how can I define a default value? <%= text_field ''purchaseorder'', ''number'' %> -- Posted via http://www.ruby-forum.com/.
2006 May 10
12
how best to implement lookup table?
Hi all - I''d like to implement a lookup table in my app that contains some reference data, just some status codes and their descriptions. What''s the most appropriate approach according to the "rails way" of doing things? Would I just implement a has_many relationship? Let''s say these are Order status codes, would the StatusCode have many Orders? This
2006 Jun 12
5
Method in Model
I have a simple method in a model, to send out e-mails via the script/runner. def Reminder.dropoff @messages = Reminder.find(:all, :conditions => [ "time < now()"]) @messages.each do |mes| Mailman::deliver_send_message(mes) end end However, it''s not sending e-mails. When this exact code was dropped in a controller, it worked great... is there
2006 May 02
9
Visual Migration Design Tool
...app. Currently, it will generate (somewhat crippled) migrations from the schema you draw. I''ve put a decent chunk of hours in on this project, and I''m at a point where I''d like to see some feedback on what I''ve done so far. If you hop over to http://test.bryanduxbury.com:8004 (textdrive proxy issues there...), sign up for an account (please use your email address as the login), and create a project, I''d appreciate what you all have to say about the app. Feature suggestions will be duly considered, and bug reports would be great. It''s stil...
2006 Apr 16
8
"Cannot convert String to Integer" after using association
So, I''ve written a partial that does some stuff with a given instance of my class "entity". Entity is ActiveRecord. I''m able to retrieve all sorts of data from an @entity, until I do something like: <% for @attribute in @entity.attributes %> <div id="attribute_<%= @attribute.id %>"> <%= render(:partial =>
2006 May 10
12
Strange Behavior on Non-Index Pages
If I browse to \myRoRApp, I get the "Welcome aboard" screen. I''ve done the ruby scripts/generate controller MyTest, and "Rolling with Ruby on Rails" tells me I should be able to browse to \myRoRApp\MyTest and see an error page, but what I''m actually seeing is a fastcgi config file! I have installed fastcgi, but apache can''t "see" the
2006 Jul 30
1
PDF to HTML converter for Ruby?
Does anyone know of a good package that can convert a PDF into HTML? Cross-platform compatible is a plus, but I can live with Linux-only if it comes to that. -- Posted via http://www.ruby-forum.com/.
2006 Jun 11
2
Javascript include in html - load times
Hi, If I include a javascript library, will it load when the html load, or just at the first use? I have table.js and I have few pages that needs it. Should I include it just on the pages that needs it, or put it on the application_layout? Thanks, Kfir
2006 May 14
2
one to one, but only with one table per record
Hi, I have a ''descriptions'' table which has_one of lots of other tables. The other tables all belong to a description. But I only want each description to have one record from any of the tables. So a description can''t have a room and photo. There has to be one description for each room, and one description for each photo. Any idea if there''s a reasonably easy
2006 Apr 21
5
input controls on-the-fly ?
i wish to know if there is some way to check user-input directly while it''s inserted. for example if i have to insert a number and the user press letters i just have to hide/delete the letters and wait for numbers. all without the need to press some submit button or any link..just automatically. Thanks Lepre -- Posted via http://www.ruby-forum.com/.
2006 May 25
10
One set of source code with multiple instances
Hi there, we made a PHP and Impakt2 based web content management system for schools with specific features that work really well for schools. The way I designed it was so there was one central set of source code and an empty (in terms of rows in tables) database structure. To set up a new school i had a script that basically created a new directory in /var/www and then within that, symlinked
2006 Apr 17
6
Is there anyway to make Rails NOT cache?
Is there anyway to make Rails NOT cache? I''m getting caching in the browser and the server. I have to restart Lighttpd after every view change to see the results. Thanks, phill
2006 Jun 10
8
OT: Good virtual server host with debian?
Hey all, I''m casually shopping around for a host that will give me a virtual server running Debian. It would host some of my rails projects and probably some svn. Does anyone know of a good host? Anecdotes about satisfaction would be nice. Thanks, Bryan -- Posted via http://www.ruby-forum.com/.
2007 Jun 19
2
Preconditions for a variance analysis
Hello everbody, i'm currently using the anova()-test for a small data.frame of 40 rows and 2 columns. It works well, but is there any preconditions for a valid variance analysis, that i should consider? Thank you for your answer, Daniel
2006 May 13
5
Ajax Checkbox using Rails
Hi, I''m trying to have a checkbox, that when clickes sends an update to the server and in turn modify the UI with feedback on the success of the operation. The main difficulty I''m encountering is that I can''t pass the checkbox value if I use the standard PrototypeHelpers. I''m using remote_function to build the function call, but it doesn''t allow
2010 Dec 29
1
Problem applying Chi-square in R and Cochran's Recommendations
...5.2. No cell has an expected value < 1. In this table: 17% of 6 cells have expected values < 5.No cells have expected values < 1. *Using these criteria, this chi square can be accepted.* Expected value = row total*column total/grand total Rosner, B. Fundamentals of Biostatistics. 5th ed. Duxbury Thompson Learning. 2000; p. 395 [[alternative HTML version deleted]]
2006 Apr 22
4
Multiple sites sharing a single application
Quick question: Say i have a few shopping sites that i want to run on the same application code but have seperate databases and layout/design, what would be the neatest ''Rails'' way of doing this? Cheers, Steve
2006 Apr 20
3
Need help cutting down on db traffic
I''m having performance issues with one of my actions, and think I''ve narrowed it down to too many sql queries. I have a form with ~60 lines, which takes ~6 sec to save, 60%+ of that is db io. There''s 650+ lines of log data, most of which are AR/queries. The app is a simple dual entry book keeping thingy, and the form in question contains a journal entry along with a
2006 Apr 14
3
Updateform with a has_many relationship ?
Hello all, I would like to be able to update the "amount" of a certain item in me order list. The problem I run into is how to define the text_field element. @order is the current order, which has_many :order_item which in turn belongs_to :order. order_item has a field "amount" which should be modified... What I tried is this below, but I get a undefined method