Re: [Rails] Web Framework Comparison Benchmark

2015-04-08 Thread Darren Daly
I was under a time constraint with this project, but may consider doing that in the future. On Monday, April 6, 2015 at 2:27:21 AM UTC+1, gvim wrote: > > On 05/04/2015 14:00, Darren Daly wrote: > > Hi all, > > > > For my final year project I have been compari

[Rails] Web Framework Comparison Benchmark

2015-04-05 Thread Darren Daly
nt-in.html Thanks for taking the time to read this and hopefully it might be of some benefit. Darren Daly. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from i

[Rails] Monkey Patching a Plugin

2009-03-11 Thread Daly
I am using a plugin that adds a method to ActiveRecord::Base. The added method is called self.create_or_update. I need to monkey patch this method. I tried in lib/ config/initializers and in environment.rb, but the one in the plugin is always the one that is run. Where do I put my version of the

[Rails] Re: form_for + catch the complete action

2009-02-06 Thread Daly
pache and Passenger? > > On Thu, Feb 5, 2009 at 3:11 PM, Daly wrote: > > > I used this about a year ago and it worked fine > > >http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-us... > > . > > Not sure if it still works with current vers

[Rails] Re: 5-second code syntax question

2009-02-05 Thread Daly
Patrick is 100% right. And he's not even being paranoid, it is almost guaranteed that someone will try this. This is how I would do it, and as Patrick suggests, put it in helper: if (%w(low medium high).include? params[:id] instance_variable_set("@#{params[:id]}", user.send(params[:id])) else

[Rails] Re: form_for + catch the complete action

2009-02-05 Thread Daly
progress bar. There are better alternatives if you are using apache and passenger. On Feb 5, 11:41 am, Petan Cert wrote: > Hi, > > that is the trouble, the upload is not working with remote_form_for. > > Cheers, > Petr > > Daly wrote: > > Can you use form_remote_for? &

[Rails] Re: link_to_remote 'this'

2009-02-05 Thread Daly
2, 2:30 pm, Ben wrote: > Isn't that just going to pass in the value of the variable 'id'? > > 'this' actually references an object in the DOM and thats what I need > from the function_to_remote so I can then manipulate it and other > objects in r

[Rails] Re: form_for + catch the complete action

2009-02-05 Thread Daly
Can you use form_remote_for? On Feb 5, 11:17 am, Petan Cert wrote: > Hi I am using classic form_for to upload pictures using ajax. > > <% form_for(:images, :url => formatted_images_path(:format => 'js'), > :html => { :multipart => true, :target => 'upload_frame' }) do |f| %> > > Is there a way t

[Rails] Re: 5-second code syntax question

2009-02-05 Thread Daly
Tom, where is it that you want to replace low with params[:id]? On Feb 5, 11:22 am, Tom Ha wrote: > Hi there, > > I have a n00b question regarding the correct code syntax: > > The aim is to have code that looks like this... > > == >   if @user.low == true >     @low = fal

[Rails] Re: Acts_as_authentificated signup problem don't understand logs

2009-02-05 Thread Daly
Hey Achille, There's not information to get to the bottom of this. Could you please paste the log when the error occurs? You may also find it helpful if you install the exception_notification plugin. It emails you whenever an error occurs with all the details you need to know to fix it. Check it

[Rails] Re: on new site

2009-02-04 Thread Daly
g in there. On Feb 3, 3:10 pm, Daly wrote: > Hello all, I'll be writing something tonight about the whole > experience. On the whole, I couldn't be happier with all of Amazon's > offerings :) > > On Feb 3, 1:58 pm, tatyree wrote: > > > > We're running

[Rails] Re: A noob question for direction

2009-02-03 Thread Daly
John, if you want to learn Ruby and Ruby on Rails, you probably need to start by buying a book first that explains all the basics of the language. A lot of people start with this one for Rails: http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition which if I remember

[Rails] Re: controllers/views in sub-folders and broken routes

2009-02-03 Thread Daly
I don't think you can supply :controller => "some_controller" in link_to_remote, only :action and :id are valid. I think you should embrace the resourceful way of doing things and add this to your routes.rb file: map.resources :users, :controller => 'admin/users', :name_prefix => 'admin_' This w

[Rails] Re: on new site

2009-02-03 Thread Daly
Hello all, I'll be writing something tonight about the whole experience. On the whole, I couldn't be happier with all of Amazon's offerings :) On Feb 3, 1:58 pm, tatyree wrote: > > We're running a flirting site > > (http://www.flirtanywhere.comhttp://flirtanywhere.mobi), on EC2 using a > > sli

[Rails] Re: selection box update

2009-02-03 Thread Daly
de inside the render :update block in it. Cheers, Ahmed On Feb 3, 10:33 am, Tarscher wrote: > Thanks for the reply. > > I wrote a small test but I don't see how I can render a partial when > the onchange event is triggered. Don't I have to use RJS for this? > > <% optio

[Rails] Re: selection box update

2009-02-02 Thread Daly
Whatever you wanted to put in the link_to_function, put in the onchange of the select. Note that since you don't want to make the round trip to the server to render the partial, or update a div with the contents of the partial, whatever you want to display as a result of the user selecting somethi

[Rails] Re: link_to_remote 'this'

2009-02-02 Thread Daly
You should be able to do this: link_to_remote(task.id_description, {:update => {:success => "div1", :failure => "div2"}, :url => {:action => :some_action, :id => id}, :id => id, :before => "Element.show('spinner')", :complete => "Element.hide('spinner'); some_functio

[Rails] Re: how make deployment

2009-02-02 Thread Daly
Mahmoud, could you provide more information on your configuration? Is the VM local to your machine? Is this for development or production purposes, etc... On Feb 2, 12:10 pm, mahmoud_cs wrote: > how i deploy my application on virtual machine --~--~-~--~~~---~--~~

[Rails] Rails 2.1 Caching and time_to_live

2008-10-30 Thread Daly
Hello all, We are using the action_cache(http://craz8.com/svn/trunk/plugins/ action_cache/) plugin for time based expiry of our RSS feeds. We upgraded to Rails 2.1, and now it fails because the plugin calls @actions.include?(controller.action_name.intern). There is no @actions anymore as seen in