similar to: Method in Model

Displaying 20 results from an estimated 3000 matches similar to: "Method in Model"

2006 Jun 19
4
Oh, Don''t Forget... launches!
Just wanted to send a quick thank you to the contributers on this forum. Today, with the help of many around here, I launched ohdontforget.com! Ohdontforget.com allows US visitors to schedule sms text messages for a specific date and time, for free. Although I have officially, launched, there is still room for improvement. I used this project as a learning opportunity for Ruby on Rails and
2006 Jun 19
5
Global Count Variable
I would like to set up a global variable to count how many times a specific method is executed, but I would like the variable to keep counting regardless of sessions, restarting the app, etc. Is this possible? Or... I could just do a simple read/write to a text file on the server, but I''m not finding any good tutorials or examples about simple text i/o... any suggestions? Thanks!
2006 Jun 09
4
app at root domain
I have my app up and running at www.domainname.com/controller/ ... but need to get it set up at just www.domainname.com I see that by default, rails is loading the pre-made index file in the /public dir. How can I override this without changing any directories around in my app? Thanks! -stirman -- Posted via http://www.ruby-forum.com/.
2006 Jun 08
3
Rails App, Going Live
I built my rails app locally, and just today put it all online. Getting a "Application error (Rails)" when trying to submit some form parameters to the db. What needs to be done with going from local development to live? I''m not sure if/where I need to set my app to "production" status. Also, is there any way to debug "Application error (Rails)"??
2006 Jun 14
3
JS variable -> ruby?
I have a little javascipt script to determine a users GMT timezone offset... is it possible to use that variable in ruby code, in the view? js script: <script type="text/javascript"> Now = new Date(); tzOff = Now.getTimezoneOffset(); tzOff = tzOff/60; </script> Thanks! -stirman -- Posted via http://www.ruby-forum.com/.
2006 May 16
4
Date/Time Quick Add
I am building a small app that reuires some clever text pattern matching... In my controller, I''ll have a string that I will want to parse out to a datetime and a message, a la Google Calendar Quick Add. Examples: 10/30/2006 7pm message 10-30-96 7:00 pm message 10/30/2006 19:00pm message ... You see what I''m getting at. For a v1.0 release, I CAN publish some standards for
2006 Jun 07
0
script/runner to send e-mails
First, I have been learning, and loving, Ruby on Rails for a few weeks now, and a huge part of my initial success ans enjoyment is due to this forum... so for that, thank you. I hope to contribute regularly. Ok, I know there are related threads, but I want to get a confirmation or denial that the workflow I am about to embark on is correct. I have a db of e-mail addy''s, messages and
2012 Mar 10
4
"Wine despair" or "Am i a noob or just plain stupid?"
hi, I want to share my odysse from yesterday until now with someone who might help me. (my real problem starts after the mass effect 3 part) So yesterday I bought MassEffect 3 after reading the topic on it http://appdb.winehq.org/objectManager.php?sClass=version&iId=25500 and http://appdb.winehq.org/objectManager.php?sClass=version&iId=25350 hmm doesnt sound to bad, lets give it a
2013 Jan 09
55
[Bug 59168] New: [nvc3/Quadro2000M] graphic garbage/corruption/noise on resume
https://bugs.freedesktop.org/show_bug.cgi?id=59168 Priority: medium Bug ID: 59168 Assignee: nouveau at lists.freedesktop.org Summary: [nvc3/Quadro2000M] graphic garbage/corruption/noise on resume QA Contact: xorg-team at lists.x.org Severity: major Classification: Unclassified OS: Linux (All)
2012 Jul 27
2
Change winbindd UID mapping
Hi, I'm running Samba 3.6.6 on Ubuntu Quantal. I have a need to manually assign some of the UID mapping on a samba domain member file server. I have used tdbtool to add the correct mapping record to winbindd_idmap.tdb. However, I am at a loss as to how to force that change to "propagate" so as to show in the permissions structure of the file system and in the output of such
2005 Dec 09
7
UserEngine - rake bootstrap aborted
Hi there, I''ve just installed login_engine and user_engine from the repositories, followed the setup procedures as documented in: vendor/plugins/user_engine/README But I''m getting the following failure: vince@vaio:~/Projects/Booking$ rake bootstrap (in /home/vince/Projects/Booking) rake aborted! undefined method `edit'' for class `UserController''
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/.
2009 Feb 06
4
[Bug 19986] New: Nouveau (20090116) fails to load on a PowerPC Pegasos 2 ( OF) using a Quaddro FX 1100 (AGP)
http://bugs.freedesktop.org/show_bug.cgi?id=19986 Summary: Nouveau (20090116) fails to load on a PowerPC Pegasos 2 (OF) using a Quaddro FX 1100 (AGP) Product: xorg Version: 7.4 Platform: PowerPC OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component:
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 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 02
9
Visual Migration Design Tool
For a really long time, I''ve been using DBDesigner from FabForce.net. For those of your who''ve never used it, its a freeware visual entity-relationship diagram tool, which allows you to make database designs visually instead of in SQL DDL. You can then use it to generate the SQL to make your databse design into reality, or even run a "synchronize" to make any
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