| tpope | I don't know anyone that uses a table prefix so it doesn't surprise me that you're the first to find it |
| ryepup | I'm running on ubuntu, so there's a little weirdness with versioning |
| tpope | get version 1.2.3, and confirm you still have a problem there |
| thoraxe | Heimidal: and when i went back to form_tag and removed :url =>, i get "no action responded to 1" |
| tpope | if so, file a bug report |
| ryepup | ok, thanks |
| Shak | magic_hat: Mm, the method is badly coded, to set up the default week requires quite a few variables (14+) |
| tongueroo | fkm using Net::HTTP.start(HOSTNAME, PORT) like this anyone know how to set the timeout seconds? |
| Shak | magic_hat: but I can go to the view directly w/o any problem, i wonder if i can simply import that |
| tongueroo | im using Net::HTTP.start(HOSTNAME, PORT) like this |
| magic_hat | Shak: Holy Jesus, lad! why not just: Event.find(:all, :conditions=>starts_on>foo and starts_on<bar |
| jeremydurham | tongueroo: use a timeout(time) do ... block |
| tpope | :conditions => ["starts_on between ? and ?",beginning,ending] |
| Shak | magic_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_hat | tpope: i knew there was a better way, and I was counting on you to point it out. |
| thoraxe | Heimidal: <% form_For :user, :url => user_path(@user), :html => {:method => :put} do %> |
| Shak | I'll try to optimize it |
| tpope | a wise decision |
| thoraxe | Heimidal: that worked |
| Heimidal | ok. |
| tpope | always a wise decision |
| thoraxe | Heimidal: but at this point i'm just guessing |
| magic_hat | lol |
| jeremydurham | ryepup: http://bigdiver.wordpress.com/2007/02/26/rails-unit-tests-failing-what-could-it-be/ |
| tongueroo | jeremydurham: response = Timeout::timeout do {...} |
| Heimidal | thoraxe: yes, that's correct. |
| tongueroo | like in this thread: http://www.ruby-forum.com/topic/105212 ? |
| RubyPanther | tongueroo: in addition to timeout(time){block} you want to put require "resolv-replace" in somewhere |
| jeremydurham | resolv-replace? |
| Heimidal | thoraxe: read up on form_for |
| magic_hat | Shak: 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. |
| RubyPanther | tongueroo: that will give you a resolver which works with Timeout |
| thoraxe | Heimidal: yeah i will in a bit |
| RubyPanther | the rest of it works out of the box |
| magic_hat | Routes, anyone... http://pastie.caboo.se/58126 |
| ryepup | jeremydurham: thanks, I'll check that out |
| jeremydurham | ryepup: so, as they say "You are not alone" |
| ryepup | and apparently my googling skills suck |