#rubyonrails - Tue 1 May 2007 between 23:26 and 23:32



tpopeI don't know anyone that uses a table prefix
so it doesn't surprise me that you're the first to find it
ryepupI'm running on ubuntu, so there's a little weirdness with versioning
tpopeget version 1.2.3, and confirm you still have a problem there
thoraxeHeimidal: and when i went back to form_tag and removed :url =>, i get "no action responded to 1"
tpopeif so, file a bug report
ryepupok, thanks
Shakmagic_hat: Mm, the method is badly coded, to set up the default week requires quite a few variables (14+)
tongueroofkm using Net::HTTP.start(HOSTNAME, PORT) like this
anyone know how to set the timeout seconds?
Shakmagic_hat: but I can go to the view directly w/o any problem, i wonder if i can simply import that
tonguerooim using Net::HTTP.start(HOSTNAME, PORT) like this
magic_hatShak: Holy Jesus, lad! why not just: Event.find(:all, :conditions=>starts_on>foo and starts_on<bar
jeremydurhamtongueroo: use a timeout(time) do ... block
tpope:conditions => ["starts_on between ? and ?",beginning,ending]
Shakmagic_hat: Mmm my friend did tell me the code is messy.. but this code actually sets up the calendar table (in the view) so it needs the titles for each column, etc..
magic_hattpope: i knew there was a better way, and I was counting on you to point it out.
thoraxeHeimidal: <% form_For :user, :url => user_path(@user), :html => {:method => :put} do %>
ShakI'll try to optimize it
tpopea wise decision
thoraxeHeimidal: that worked
Heimidalok.
tpopealways a wise decision
thoraxeHeimidal: but at this point i'm just guessing
magic_hatlol
jeremydurhamryepup: http://bigdiver.wordpress.com/2007/02/26/rails-unit-tests-failing-what-could-it-be/
tongueroojeremydurham: response = Timeout::timeout do {...}
Heimidalthoraxe: yes, that's correct.
tongueroolike in this thread: http://www.ruby-forum.com/topic/105212 ?
RubyPanthertongueroo: in addition to timeout(time){block} you want to put require "resolv-replace" in somewhere
jeremydurhamresolv-replace?
Heimidalthoraxe: read up on form_for
magic_hatShak: putting aside the activerecord/db issue, i'm not sure what your problem is? if you set the default week/day/month/whatever and then render the calendar partial in the index view, that should take care of it, unless I'm missing something.
RubyPanthertongueroo: that will give you a resolver which works with Timeout
thoraxeHeimidal: yeah i will in a bit
RubyPantherthe rest of it works out of the box
magic_hatRoutes, anyone... http://pastie.caboo.se/58126
ryepupjeremydurham: thanks, I'll check that out
jeremydurhamryepup: so, as they say "You are not alone"
ryepupand apparently my googling skills suck

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 110 

IrcArchive