search for: kihlbom

Displaying 15 results from an estimated 15 matches for "kihlbom".

2005 Dec 30
4
High performance queries - RoR, PHP or something else?
...quest: 4.75 [ms] (mean, across all concurrent requests) Transfer rate: 113.79 [Kbytes/sec] received As you can see, in this particular case PHP is 3x faster than RoR. What do you do when you have a specific part of your app that has high performance requirements? Best regards, CJ Kihlbom
2006 Mar 20
0
Re: Problem with AJAX not working on IE
...E DOES DO it, but takes a full 31 seconds!!! (The RadRails WEBrick console shows the POST immediately, but IE trundles for a full 31 seconds to cough up the change in the text). Victor Kane http://awebfactory.com.ar Message: 8 > Date: Mon, 20 Mar 2006 15:33:53 +0100 > From: "Carl-Johan Kihlbom" <kihlbom@gmail.com> > Subject: Re: [Rails] Problem with AJAX not working on IE > To: rails@lists.rubyonrails.org > Message-ID: > <c94e000f0603200633y27663e58je5a32ac7cf5aabbe@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Picking up...
2007 May 23
4
content_for
Any ideas how I would go about writing specs for views which make use of content_for? I''d like, for example, to be able to specify that ABC view places XYZ in the sidebar, which I do using content_for(:sidebar). Am I missing something obvious? Kyle
2006 Apr 30
13
Programming with designers in mind
Gents, We''re hard at work on a new Rails app. We''re a small group of developers...not a web designer in the bunch. We know CSS enough to be dangerous, but we shy away from the "softer" skills (all the while envious of those with that capability). We intend to grow our application in terms of functionality, but I need to make sure we keep an eye towards
2006 May 31
7
Getting 22 elements
Hello, I''ve done === class HomeController < ApplicationController def index @country = Country.find(:all, :include => "cities") end end === And rhtml is: === <% @country.each do |country| %> <h1><%= country.name %></h1> <% country.cities.each do |city| %> - <%= link_to city.name, :action =>
2006 Mar 29
11
why belongs_to does not like validation?
This works : class Recipe < ActiveRecord::Base belongs_to :category end But (when I add validation) this does not work : class Recipe < ActiveRecord::Base belongs_to :category validates_length_of :category, :within => 6..20 validates_uniqueness_of :category, :message => "already exists" end thank you -- View this message in context:
2006 May 16
5
how to redirect after sendfile?
Greetings! Is there a way to get RoR to redirect_to another action after doing a sendfile? My little app lets the user enter a bunch of data and then creates an XML file from it. I''m using sendfile to let the user download the XML file. Once they download the file I want to take them to a new view that presents a logout button that will trigger a cleanup. But it looks like RoR
2006 Jul 12
7
Does anyone work with iso-8859-1 database ?
hello, Our database is in is-8859-1, and I want to update some text fields without success due to some accentuate characters ?? ect ... In my html page (where the charset is iso-8859-19) my textarea display the accentuate characters well and when the user post the form ... I thought that I just need to save it .... without success since ruby map one byte for one character ... So I
2006 Jul 07
3
calculate number of months difference between two dates
hi, Is there an easy way of calculating the difference in months between two dates in a controller. thanks -- Posted via http://www.ruby-forum.com/.
2006 May 08
2
Making a array to use with @user.
Hi all, I made this array: @army_types = ["ss","s","xl","l","m","w","xw"] but, I want to be able to go like this @army_types.each do |st| @user.st end but, I get the error that "@user.st" st is not a valid feild for the table user. Is there a way to get around MySQL running it first? -- Posted via
2006 Jan 16
2
Problem with AJAX not working on IE
I''m having a problem making this code to work on IE: var Permit = { // Expand permit information onMore: function(id) { new Ajax.Updater(''pm-''+id+''-lg'', ''/employees/sign_permit_lg/''+id, {asynchronous:true, evalScripts:true, onLoading:function(request){
2006 Jul 20
7
How do you use :message with validation?
If I do validates_uniqueness_of :name, :message => "It''s not uniqueeee!!!" then how do I have it display that message when the check fails? -Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
14
Image manipulation/resizing server-side?
I''d like to implement a system in a Rails app where I allow the user to upload an image file, and then the app takes that image and manipulates it, saving a thumbnail, small, and original size version of the file to the server. How would I go about doing that? Thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2006 Feb 21
26
Net::SMS::BulkSMS 0.1
This is the first release of a new Ruby library for the www.bulksms.co.ukAPI which should allow simple integration of SMS functionality into your Ruby or Rails apps. Sending a message is as simple as: @service = Service.new(''username'', ''password'') @service.send_message(''This is my message!'', ''4479123456789'') # whats my
2005 Dec 22
8
Payflow Pro (was Re: FatWreck.com - New Rails Site)
Several years ago, before PHP introduced their built-in pfpro functions, I rolled my own crappy interface, which of course delegated to the commandline payflow client. I could certainly do the same in Ruby today. Thinking back on it, I realized at the time, and realize again now, that delegating this functionality to a commandline app is a security risk unless you''re the *only* user on