similar to: Global Count Variable

Displaying 20 results from an estimated 20000 matches similar to: "Global Count Variable"

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 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 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 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 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 14
13
A good tutorial
Are there any other tutorial than "Agile Web Development with Rails" that you can suggest? So far I can''t say that RoR has been easy to learn. :-) -- Posted via http://www.ruby-forum.com/.
2006 Jun 13
2
Migration or model first
I sort of asked this the other day but with no replies. I''m new to rails btw. Question: Is there a preferred way to create migrations ? What I''ve noticed is if I create a model first , it sets up the skelton of the migration. If I create a migration file and then do the model it attempt to create a migration file and not overide the one already in place. It seems to make sense
2006 May 16
25
Ruby on Rails Searchable and Annotatable Docs
I recently updated my Rannotate application. The interface has been completely redone and there are lots of new features. The basic idea is to create searchable and user annotatable documentation for the Ruby on Rails API (think php.net). Check it out at - http://rails.outertrack.com * What is Rannotate? Rannotate is a Rails application and RDoc YAML generator that work together to provide
2006 Jun 11
47
Ruby on Rails and CakePHP Comparison
>From a development standpoint, what are the features that make Ruby on Rails a better choice compared to CakePHP? -- Posted via http://www.ruby-forum.com/.
2015 Oct 17
2
Improve JIT C API
Hi Eric, > I think some people are waiting until the conference to sit down and discuss. At this point it's probably fine to wait. That makes sense. > *shrug* For now I'm ok with just llvm-c with a comment of "these apis are guaranteed to change use at your own risk", or some similar idea. Sounds good. I'll commit something like this over the weekend. I'd like
2006 Jun 05
5
adding habtm through migrations
Hello, I''m stuck, I''ve got a model Product and would like to add a new model called Category. Furthermore, I want to set up a many2many relationship between the mentioned models. the problem is that I do not know how to set the primary key in the categories_products table. this is what I''ve got in my migration file: create_table :categories do |t| t.column :name,
2006 Jun 29
8
Is This a Performance Concern?
I''m running on a brand new MacBook Pro with a relatively clean working set. using Mongrel in production mode on port 3000. The home page does not hit the database and I''m getting: Processing HomeController#index (for 127.0.0.1 at 2006-06-29 14:59:02) [GET] Session ID: e11f7df52bffff304ca7c88e672ef71a Parameters: {"action"=>"index",
2006 May 28
9
Railsmanual.org
Did anyone else catch the redesign? I don''t know who''s responsible, but it''s lookin better! Good job... -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060528/f9f92618/attachment.html
2006 May 23
8
ad-hoc query
How do you run an ad-hoc query that does not belong in any model? I thought it was something like ActiveRecord::connection.find("my query..."), but I can''t seem to find the documentation on it. I know I''ve seen it somewhere before, though. thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2006 Jun 16
4
Unit test and get request with a URL
I''m tyring to write a unit test that uses a get() method to simulate a get request in my functional test. However, get wants an action, and I have a URL. I''m trying to redirect to a URL the user tried to hit before logging in. After they login I want to go back to the URL they originally tried. I can''t find the get() method code in the help or otherwise. I
2006 Jun 12
2
Database in RoR application
I''m working on a new rails project that will have a very, very large database. Initial insert will be in the hundreds of thousands of records. The database we are getting the information from is Microsoft SQL based, and we have access to tab delimited update files daily. We''re trying to write import scripts and use a well designed database on our end. The data they are
2020 Aug 24
2
MultiDatabase shard count limitations
Olly Betts <olly at survex.com> wrote: > The report you show seems to be just the time take by each function > directly rather than including functions it calls. It looks like a lot > of the time is spent in cursor movement, as totalling up things that > seem like they'd be due to that I quickly get to 40+% but it's hard > to tell if that's about the actual total
2015 Oct 17
2
Improve JIT C API
Hi All, Belatedly circling back to this, with apologies for not being able to keep up at the time. I expect the ORC C APIs to take at least a couple of release cycles to get ironed out to the point where they could be considered stable. It would be wonderful if it happened more quickly, and maybe we'll get lucky, but I'm not counting on it. :) That said - the best way to get things
2006 May 22
3
Best Rails API source
Folks, Is api.rubyonrails.com the best source for RoR API info? Do any other formats exist, that are easier to navigate/search? Thanks, Marcus Marcus Blankenship Technology Services - Software Group JELD-WEN, inc. Information Systems 541-882-3451 x 2558 marcusb@jeld-wen.com RELIABILITY for real life* This correspondence is for the named person''s use only. It may contain