similar to: yet another rails site - happycarpools.com

Displaying 20 results from an estimated 2000 matches similar to: "yet another rails site - happycarpools.com"

2006 Apr 15
2
Can''t run MySQL queries
Hi everyone, I''m having trouble actually running mysql queries. I can connect to the database, I think, but when a query gets run the following shows up in my log: SQL (0.000000) Mysql::Error: Lost connection to MySQL server during query: SHOW TABLES Any suggestions? Thanks! Daniel Higginbotham
2006 May 18
4
time select with am/pm?
Hi everyone, Is there a time select helper which uses a 12 hour clock rather than a 24 hour one? Also, does anyone know if :discard_year actually works in datetime_select now, or how I could find this out? Thanks! Daniel
2006 Apr 16
12
tired of using defined? all the time
Hi everyone, It seems like every time I want to evaluate a possibly undefined variable I have to use defined? to see that it exists first, so I can''t simply have -- if params[:range_start] > 3 or something like it. I need to have -- if defined? params[:range_start] && params[:range_start] > 3 I can''t even have -- if params[:range_start].nil? This is really
2006 May 23
6
OT: best books
Hopefully this isn''t completely inappropriate, but lately I''ve been curious about what books people have found most helpful in their development as programmers. If one of the icons like Dave Thomas, DHH, Mike Clark, Andy Hunt et al could weigh in that''d be awesome :) Here are some of my favorites: Refactoring, Martin Fowler Mastering Regular Expressions, Friedl
2006 May 18
6
Form actions with additional parameters
Hiall, I want to give the action of a form an additional parameters but can''t figure out how to do it. My code looks like this <%= start_form_tag :action => ''create'', next_step => true %> <%= render :partial => ''user_form'' %> <%= render :partial => ''community_form'' %> <%= submit_tag
2006 Apr 13
2
acess local variables from helper?
if I call a helper method from inside a partial, it doesn''t appear to have access to the partials local variables. is there a way to make them avilable without passing them as parameters? here''s a simple example # in the view <%= render :partial => "my_partial", :locals => :value => 2%> # _my_partial.rhtml - raises "undefined local variable or
2006 Jun 12
2
dom id on form_remote_tag
I want to make use of a form_remote_tag to submit a form asynchronously. Easy done. However, we also want to add an observe_form tag to check for some value changes while the form is being entered. The observe_form tag needs a dom id to work on but I can''t see how to enter an html option for the dom id of the form on the form_remote_tag. Any ideas? Here is the form tag so far...
2006 Jun 07
3
Question on login generators, plugins
Not sure if I want to build my own or use something already built that''s out there. This is the first step in my project though and a major one, so some of my requirements would be: 1-The ability for a user to register themselves 2-Email / link activation 3-Access levels (or ACL control - I think they are basically the same). 4-The ability to track users either through session or cookies
2006 May 26
4
shouldn''t this work? - session[:array_of_objects].delete_if {|x| x.id == params[:id]}
I am saving an array of active record objects (college courses) in the session as session[:course_list]. This is the cart for a registration controller. If a student chooses to delete the course from the list I get the :id as params[:id]. However if I do session[:course_list].delete_if {|x| x.id ==params[:id]} does not work. session[:course_list].delete_at(idx) works. Ocourse to do this I have
2006 Jun 28
2
Assign CSS class to Link to Remote
I''m trying to get link_to_remote to assign a CSS class to the link it generates. My code is as follows: <%= link_to_remote "Show Full Info", :update => "fullcontact" + reparray.last.to_s, :url => "/cm/full_contact/" + reparray.last.to_s, :classname => "contactlink" %> Which produces this HTML: <a href="#"
2004 Sep 21
5
R 1.9.1 Fails to Start on WinXP SP2
I have two computers both of which are running Windows XP SP2. R 1.9.1 runs just fine on one but not the other. Both installations of R came from the same installation package. When I click on the desktop icon an hourglass shows up then disappears. Similarly, if I start RGUI the process shows up in task-manager then abruptly disappears. Interestingly, I can access R in Excel via the D(COM) Server
2006 Mar 28
3
coolest software ("coolest startups" re-asked)
Asked a little while back about "coolest startups" using Rails, I think it''d have been better had I asked "coolest software." Besides the obvious (37Signals, Typo, Yakima Herald, Odeo, Measure Map, etc.), I''m just curious about other developments where people are using it to make nifty stuff. -- Giles Bowkett www.gilesgoatboy.org
2008 Oct 13
7
Open all from one machine....
Hi all... I have configure a Shorewall gateway to my little lan im my home. The shorewall work fine here... However, when I try to use Limewire, I can download nothing.... On fact, I can''t get any high connection on Limewire.. What can I do to make Limewire work properly behind a Shorewall gateway???? May be I have to open all port (both tcp and udp), but how? Thanks a lot... Best
2006 Mar 06
11
coolest startup?
OK, general question for the community -- what''s the coolest startup using Rails? I don''t think "37 Signals" is a fair answer. I''m curious as to what kind of other developments are happening. Are there a lot of startups using Rails in the first place? Or do most of you who are lucky enough to do Rails for a living (I''m coding Java, bleah) work in large
2006 May 21
5
model methods
Hello everyone, In my model, I have def leave_at_formatted leave_at.strftime("%I:%M %p") end I was wondering if there were any way to define to_s for leave_at in order to get the same result? Thanks!
2008 Oct 08
19
transparent proxy
2006 Jun 20
3
return unique rows with finders
I''m looking through the api for something like find(:all, :distinct => true) so that multiple instances of a row won''t be returned - is this possible? Thanks!
2007 Nov 05
36
please help diagnosing "ip_conntrack: table full, dropping packet"
Hi, I run a small system with an older version of shorewall (1.4.2). It has been extremely solid for a long time. But recently I have noticed the connection table filling up, which has never happened before. My guess is that the box is getting hit with floods. The system only has 64M of ram and the conntrack_max is set to 4096 based on the ram. I have temporarily increased it to 8192 so that it
2008 Oct 21
7
DNAT or NAT - QUESTION
Hi, I have a simple question. I have my firewall with 2 external Ip and 1 lan. For example ISP1 FW LAN----Mail Server ISP2 Ok, when i DANT the smpt port to my mail server, I can see that the conection in my mail server comes from the external IP of my ISP. I need to change this so the conection to my mail server cames from the LAN IP from my firewall Is this possible?
2006 Aug 26
2
Did a recent Samba upgrade change something to lose connection with iptables enabled?
Hello, I am still a newbie to Linux, but I can find my ways around as long as I have help. For some reason if I leave my iptables enabled, I will lose my Samba share connection after a few minutes. Of course, then iptables disabled, I have no problems. I am using Debian with Kernel 2.6.14-K7. Is this normal? Thank you in advance. :) -- "Ever watch ants just crawling around? They walk in