[Rails] Re: Connect Ruby on rails to MySQL

2009-06-15 Thread Hassan Schroeder
want to use MySQL? -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

[Rails] Re: syntax error, unexpected tINTEGER, expecting $end

2009-06-23 Thread Hassan Schroeder
You might want to try this passing a string as an argument, as you've defined the column in your table :-) -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Starting ruby script on server's reboot

2009-06-23 Thread Hassan Schroeder
On Tue, Jun 23, 2009 at 4:47 PM, serenobs seren...@gmail.com wrote: how can I start my ruby script on server's reboot? Like anything else -- invoke it from a script in /etc/init.d . (That is, of course, assuming *nix -- Windows, no idea) -- Hassan Schroeder

[Rails] Re: Putting Rails on the Web Server

2009-06-25 Thread Hassan Schroeder
rails` What else do you think you need? -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Putting Rails on the Web Server

2009-06-25 Thread Hassan Schroeder
On Thu, Jun 25, 2009 at 9:23 AM, Mr. Watsongraphett...@gmail.com wrote: Can you put rails on a web server before you have written an application? And how do you do it? Yes, typically, `sudo gem install rails` would do it :-) -- Hassan Schroeder hassan.schroe

[Rails] Re: Putting Rails on the Web Server

2009-06-25 Thread Hassan Schroeder
different matter. -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk

[Rails] Re: Putting Rails on the Web Server

2009-06-25 Thread Hassan Schroeder
up on capistrano would probably be a good start, along with googling 'rails deployment'. -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Big help with shared subdomains cookies

2009-07-02 Thread Hassan Schroeder
the session... how can i set this also for common cookies ? (created with cookies[:name] = {:value = value, :expires = 6.months.from_now} ) Read the Rails API doc? -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You

[Rails] Re: Using the model to insert records without a running rails application

2009-07-06 Thread Hassan Schroeder
can load data from YAML, CSV -- whatever kind of files you like. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Help kill ghost request

2009-07-06 Thread Hassan Schroeder
open to watch the interaction. No prob. Ain't that always the way? :-) I've got to run off to do something else now, but will try to take a look at the code later, maybe I can reproduce locally. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Help kill ghost request

2009-07-06 Thread Hassan Schroeder
for reporting it! -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: Time parsing issue

2009-07-11 Thread Hassan Schroeder
, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

[Rails] Re: Time Converstions Issues

2009-07-13 Thread Hassan Schroeder
On Mon, Jul 13, 2009 at 2:38 PM, Matt Jonesal2o...@gmail.com wrote: I'm somewhat curious what makes sense for a dateless, zoneless time. What time do you normally wake up? 7:00 would be one answer :-) No date or TZ associated with that... -- Hassan Schroeder

[Rails] Re: Time Converstions Issues

2009-07-13 Thread Hassan Schroeder
Time (not Pacific or Central European), on Tuesday 14 July 2009 (not Wednesday 15 July). what time will you get up tomorrow and what time do you typically get up seem pretty obviously different to me... :-) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Time Converstions Issues

2009-07-13 Thread Hassan Schroeder
totally irrelevant where I am. I get up at 7 in San Jose. I get up at 7 in New York. I get up at 7 in Frankfurt. I get up at 7 in Ubud. It's 7 hours after midnight wherever I happen to be. There is utterly no time zone component to the concept (and use case) I'm talking about. -- Hassan Schroeder

[Rails] Re: How to dynamically change stylesheets globally?

2009-07-15 Thread Hassan Schroeder
be a much more obvious way to tackle this problem. Why not just save the user preference in a persistent cookie, so it continues in effect when the user returns? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: How to dynamically change stylesheets globally?

2009-07-15 Thread Hassan Schroeder
to be to be able to bookmark the correctly font sized pages, so I'm going to wait until somebody asks for it. If you use a persistent cookie, any bookmarked page will appear in whatever setting was selected when your visitor left the site. -- Hassan Schroeder hassan.schroe

[Rails] Re: No line break between text and auto complete

2009-07-18 Thread Hassan Schroeder
field. How can I stop it doing this? Uh, stop it? FORM is a block level element; that's the appropriate behavior. Mark up your page differently if you don't want that. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Routing error

2009-07-18 Thread Hassan Schroeder
? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

[Rails] Re: Routing error

2009-07-18 Thread Hassan Schroeder
` for *this* application show? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: Routing error

2009-07-19 Thread Hassan Schroeder
*exactly* as the error message says, there's no route /cookbooks. That seems like a pretty unambiguous indicator :-) So where and why are you calling that? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Need Help! after upgrade rails to 2.3.2 it show empty p

2009-07-19 Thread Hassan Schroeder
a console to look for errors 4) running tests -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: Need Help! after upgrade rails to 2.3.2 it show empty p

2009-07-19 Thread Hassan Schroeder
` for starters Also, it would be good to use something like the Firebug plugin for Firefox to make sure that your perceived empty page really is an empty response. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: my first app with RoR problem.

2009-07-21 Thread Hassan Schroeder
) with Linux for a more Rails-friendly dev environment. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: Rails Application Performance...

2009-07-21 Thread Hassan Schroeder
that the performance will be better?. What leads you to think your session management is the issue? Have you used any performance analysis tools (e.g. New Relic)? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Filter out or not showing event records that are in the past

2009-07-27 Thread Hassan Schroeder
they are :-) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk

[Rails] Re: using form values

2009-07-27 Thread Hassan Schroeder
to it in any given page, so what was already suggested is exactly right: td%=h number.m1 %/td td%=h number.m1 * 25 %/td If that's not the answer, please try to explain what you want to do a little more clearly. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: [activerecord]what are the reserved attribute names that become protected attributes

2009-07-27 Thread Hassan Schroeder
haven't been able to find anything conclusive. ? googling rails reserved words brings this up as #1: http://wiki.rubyonrails.org/rails/pages/ReservedWords -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Rails on OS X problem

2009-07-28 Thread Hassan Schroeder
: ruby-openid(2.1.7 not ~ 2.0.0) (Gem::LoadError) I tried uninstalling and then re-installing ruby-openid, but that doesn't help. What does `gem list --local ruby-openid` produce? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: OS X rails path problem

2009-07-28 Thread Hassan Schroeder
/bin (is that last bin/bin correct?) Then see what `which rake` produces. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: OS X rails path problem

2009-07-28 Thread Hassan Schroeder
not be accounted for in those three files. Nothing comes immediately to my mind, but I suppose some errant installer could do it, especially if you decided to CTRL-C out of the middle of an install. :-) Something to keep in mind, I suppose. HTH, -- Hassan Schroeder hassan.schroe

[Rails] Re: Empty result set after migration

2009-07-29 Thread Hassan Schroeder
set. Is tehre something I am missing here? And what, you're running it in test mode? Or running tests? You need to describe more precisely what you're doing, and why... -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Filter out or not showing event records that are in the past

2009-07-29 Thread Hassan Schroeder
if you posted your actual model code and the controller code where you're calling your named scope. Though -- a suggestion -- trying things out in the console is often an effective way to debug a problem... FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Save userform data in database

2009-07-29 Thread Hassan Schroeder
specific question? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: Save userform data in database

2009-07-29 Thread Hassan Schroeder
pretty straightforward. User, Search, user has_many searches -- what's the issue? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: ****[Rails] Re: Complex finds - part 2

2009-07-29 Thread Hassan Schroeder
config). FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: Actionmailer whoes

2009-07-29 Thread Hassan Schroeder
hpricot to (short version) get the innerHTML of the BODY element of the email. The doc/examples are pretty straightforward, but post back if you have problems with it. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Offline documentation for ruby on rails

2009-07-30 Thread Hassan Schroeder
*not* show an rdoc link when I do that. !suckimoto, you're right -- the rdoc link is inactive. Scratch that, then :-) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: Doh! Two versions of Ruby installed!

2009-08-02 Thread Hassan Schroeder
`which ruby` returns your original version I'd go with door #3, personally :-) HTH, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Best Practice: Automatic session timeout/cleanup?

2009-08-03 Thread Hassan Schroeder
environment over and over. So you might want to look at the various daemon options, i.e. just run something continuously to periodically expunge old sessions. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Best Practice: Automatic session timeout/cleanup?

2009-08-03 Thread Hassan Schroeder
of the Rails environment. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: ActiveResource xml element ordering

2009-08-04 Thread Hassan Schroeder
try that and come back if you have a specific problem :-) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: ActiveResource xml element ordering

2009-08-04 Thread Hassan Schroeder
no predictability. this is my specific problem Are we talking about the same thing? How that even begins to relate to http://api.rubyonrails.org/classes/Builder/XmlMarkup.html escapes me... -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Best Practice: Automatic session timeout/cleanup?

2009-08-04 Thread Hassan Schroeder
to inventory. Interested in any ideas on the most Rails-ish way to handle this. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Re: Best Practice: Automatic session timeout/cleanup?

2009-08-04 Thread Hassan Schroeder
by that user, what would be the DRYest way to trigger the update? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails] Re: rake gems (in /opt/SDK/domains/domain1/autodeploy/jruby_deploy_test) rake aborted! Please insta

2009-08-04 Thread Hassan Schroeder
migrate my db etc. Uh, do you have both Ruby and JRuby on this machine? If so I'd guess you need to do # jruby -S gem install activerecord-jdbcmysql-adapter -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: rake gems (in /opt/SDK/domains/domain1/autodeploy/jruby_deploy_test) rake aborted! Please insta

2009-08-04 Thread Hassan Schroeder
` is failing, show us the output of which jruby which java which gem which rake echo $PATH -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: rake gems (in /opt/SDK/domains/domain1/autodeploy/jruby_deploy_test) rake aborted! Please insta

2009-08-04 Thread Hassan Schroeder
-1.3.1/lib/ruby/gems/1.8/gems And try again, using the jruby -S command format -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: f.check_box help

2009-08-06 Thread Hassan Schroeder
, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk

[Rails] Re: Changing from database sqlite3 to mysql - windows

2009-08-07 Thread Hassan Schroeder
to take any advice? :-) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Changing from database sqlite3 to mysql - windows

2009-08-07 Thread Hassan Schroeder
On Fri, Aug 7, 2009 at 12:41 PM, WalTwaltermog...@gmail.com wrote: What OS are you using? Under windows, under control panel, there's no path variable setting. Au contraire -- google `set windows PATH` for lots of instructions. -- Hassan Schroeder hassan.schroe

[Rails] proxy recommendations?

2009-08-08 Thread Hassan Schroeder
some_other_config_file -- neither seems to take. So -- alternatives? Nginx? Pound? other? Something scriptable via Capistrano would of course be awesome :-) -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You

[Rails] Re: proxy recommendations?

2009-08-08 Thread Hassan Schroeder
On Sat, Aug 8, 2009 at 3:04 PM, Frederick Cheungfrederick.che...@gmail.com wrote: I haven't used it for exactly this but haproxy is generally pretty good about this sort of stuff - definitely worth looking at. Merci! Downloading now. -- Hassan Schroeder

[Rails] Re: ActiveRecord - %= and % yielding different records

2009-08-10 Thread Hassan Schroeder
    outfile=File.open('/tmp/look3','w') 11      outfile.puts(profile.inspect) 12      outfile.close 13     #   @profile=profile 14   end FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received

[Rails] Re: ActiveRecord - %= and % yielding different records

2009-08-10 Thread Hassan Schroeder
, that usually helps me get my thinking around a problem. :fwiw -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: Filter out or not showing event records that are in the past

2009-08-12 Thread Hassan Schroeder
params[:mode] :: which also demonstrates scope chaining, FWIW. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails] Re: Can't Save Integer Zero to SQLite3 DB

2009-08-15 Thread Hassan Schroeder
having a model with an integer field. Setting that field to 0 was successful both via rspec test and console . I would either try to create a minimal test case app that demonstrates the problem you're seeing, or write more tests. Which couldn't hurt, in any case :-) FWIW, -- Hassan Schroeder

[Rails] Re: JRuby vs Ruby: why would you ever use ruby?

2009-08-16 Thread Hassan Schroeder
??? FWIW, ImageMagick with the mini_magick gem works fine with JRuby (using attachment_fu). -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Re: Can't Save Integer Zero to SQLite3 DB

2009-08-16 Thread Hassan Schroeder
odd. See if you can come up with a simple (reproducible) test case. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails] Re: Redirect to domain from subdomain

2009-08-26 Thread Hassan Schroeder
is it possible to redirect? Why don't you just alias (in DNS) one to the other? And no, it's not possible to redirect and have the url in the address bar remain the same. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: links on page

2009-08-26 Thread Hassan Schroeder
requires a protocol (http, https, ftp, etc.). You might want to (re)consider which is most appropriate to store for your app's current and future use. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan

[Rails] Re: Redirect to domain from subdomain

2009-08-26 Thread Hassan Schroeder
sends a 30x redirect response to a client, it instructs that client to send a new request to the provided URL, which will then be visible in the client's address bar (if it has one). Forwarding under the covers is a different beast. -- Hassan Schroeder hassan.schroe

[Rails] Re: MySQL

2008-11-24 Thread Hassan Schroeder
, password, etc.) for your DB. -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

[Rails] Re: MySQL

2008-11-24 Thread Hassan Schroeder
! Access denied for user 'root'@'localhost' (using password: YES) That's saying that the password for root in database.yml is wrong; are you saying that it's not? You can log in *using the exact same information* as you've got in database.yml? -- Hassan Schroeder [EMAIL

[Rails] Re: MySQL

2008-11-24 Thread Hassan Schroeder
that ASAP and then correct your database.yml. -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Apche + SSL Configuration Issue

2008-11-25 Thread Hassan Schroeder
( -l, -t for instance). HTH, -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

[Rails] Re: Database password encryption

2008-11-26 Thread Hassan Schroeder
in the first place, I'd think :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: fire JS event on page load

2008-11-29 Thread Hassan Schroeder
?? That -- rendering a page and immediately changing it -- makes no sense at all; why are you not delivering your page with the proper initial state? -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: Setting up Environment

2008-11-30 Thread Hassan Schroeder
on Windows is somewhat problematic. Maybe if you stick to the Linux install and get that working first... What are your issues there? -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: Formatting issue

2008-11-30 Thread Hassan Schroeder
in this email, either :-) Are you trying to display this in PRE tags or equivalent CSS with a monospace font? Your display would probably be more robust if you parsed the file contents and put it in an actual HTML table, though. FWIW, -- Hassan Schroeder [EMAIL PROTECTED

[Rails] Re: what's the smallest device to do Rails development on???

2008-12-03 Thread Hassan Schroeder
a MacBook). Not quite pocket-sized, but you could look at the various netbooks, e.g. ASUS Eee PC. Much smaller than a Mac, runs Linux, etc. The gating factor 're productive is the keyboard; I got a Eee PC 900 for a trip, and my fingers are just too big for it -- obviously YMMV. HTH, -- Hassan Schroeder

[Rails] Re: Help with ruby query!

2008-12-04 Thread Hassan Schroeder
answer the previous question: Thorsten Mueller wrote: So what is in params[:authors] ? Where does this param come from and does it contain an age? You can look in your logs (Rails and/or MySQL) to see the query that's being constructed from your code, if nothing else. -- Hassan Schroeder

[Rails] Re: Should all form elements for a form be in a single div?

2008-12-04 Thread Hassan Schroeder
but clicking the Submit button did not submit anything. Any suggestions? Sure, validate your page; if you're still having problems after that, check the page for JS problems with FireBug. Or post a URL here. HTH, -- Hassan Schroeder [EMAIL PROTECTED

[Rails] Re: How to set the focus to a specified field in a form

2008-12-05 Thread Hassan Schroeder
script language=JavaScript And remember, kids, it's never too late to pick up bad habits. :-) The language attribute of the script tag has been deprecated for, oh, what, like TEN YEARS now? Just sayin' ... -- Hassan Schroeder [EMAIL PROTECTED

[Rails] Re: How to set the focus to a specified field in a form

2008-12-05 Thread Hassan Schroeder
-of-date online references -- http://www.w3.org/TR/html401/ Running your pages through the W3C validator will also point out problematic markup, and frequently prevent a lot of styling and JS headaches. FWIW, -- Hassan Schroeder [EMAIL PROTECTED

[Rails] Re: SuperInPlaceControl

2008-12-05 Thread Hassan Schroeder
selection, the ajax call is posted, the record is updated, but the label on the view never gets updated. In fact, it blanks out. Sounds to me like it might be getting updated with an empty value... FWIW, -- Hassan Schroeder [EMAIL PROTECTED

[Rails] Re: Changing primary.. Rails/mysql

2008-12-06 Thread Hassan Schroeder
in another thread: params[:authors] IS NOT the value you think it is. You are NOT PASSING a valid value for age so of course the result set is empty, giving you a nil @results. Your form doesn't match up with your code. That's the problem. -- Hassan Schroeder [EMAIL PROTECTED

[Rails] Re: Opinion on Multiple forms on same page

2008-12-08 Thread Hassan Schroeder
. I've certainly had projects that required multiple forms per page. FWIW, -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: Opinion on Multiple forms on same page

2008-12-09 Thread Hassan Schroeder
POST data isn't delivered as a query string. Can you clarify? -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: Opinion on Multiple forms on same page

2008-12-09 Thread Hassan Schroeder
going on, someone's done a crappy job of UX design, but that applies to so many things :-) -- Hassan Schroeder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails] Re: Fetching checkbox name from database

2008-12-13 Thread Hassan Schroeder
for fetching the checkbox names, and the other is for my application). Do I need to include some extra code for it? The doc for ActiveRecord::Base has a section titled Connection to multiple databases in different models Perhaps that would be a good place to start :-) -- Hassan Schroeder

[Rails] Re: HTML in db columns

2008-12-15 Thread Hassan Schroeder
, or causing the bullets to be hidden by another element? OTOH, if you can't see the OL/LIs in a page via `view source` I think you'll need to post some code. -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received

[Rails] Re: Scaffold leads to OK database, but model empty

2008-12-15 Thread Hassan Schroeder
filename:string created:date modified:date imported:date ..probably worth mentioning that you can easily confirm something like this by opening your Rails console and entering e.g. @csv = Csv.new and viewing the output. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com

[Rails] Re: Params error with: complex form+multiple models

2008-12-15 Thread Hassan Schroeder
-- an ID must be unique within a given page. And more so if you have JavaScript acting on things via ID. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Re: Rails2.2.2, is it a bug?

2008-12-16 Thread Hassan Schroeder
that attribute of your model. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: Alternative solution to session and global variables

2008-12-16 Thread Hassan Schroeder
On Tue, Dec 16, 2008 at 7:51 AM, The Neurochild neuroch...@gmail.com wrote: ... we have as much 50 session variables inside. Sounds like a refactoring opportunity :-) -- Hassan Schroeder hassan.schroe...@gmail.com

[Rails] Re: http://localhost/3000 cant see my pages

2008-12-16 Thread Hassan Schroeder
at http://localhost:3000/ ? If so, what does can't see actually mean, and what's in your log? -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Re: Alternative solution to session and global variables

2008-12-17 Thread Hassan Schroeder
:-) -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com

[Rails] Re: When to use #show action in RESTful application

2008-12-18 Thread Hassan Schroeder
-shirts -- with links to 'show' you a detail view of a single instance of that model. That's a classic web design pattern, regardless of platform. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received

[Rails] Re: JOBS: Looking for RoR developers to work on enterprise website in Gibraltar

2008-12-18 Thread Hassan Schroeder
to more information on either of those points? Inquiring minds want to know :-) -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Alternative solution to session and global variables

2008-12-19 Thread Hassan Schroeder
a Model object with 50 attributes that's stored in the DB. Or 5 objects with 10 attributes, or whatever makes sense. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you

[Rails] Re: mySQL setup - I'm losing it here.

2008-12-19 Thread Hassan Schroeder
, /usr/local/bin. This is just basic *nix stuff. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: Noob - added a column via migration but get error on insert

2008-12-19 Thread Hassan Schroeder
. Here is what I enter via Rails Console user = User.new(:name = TommyJones, :hobby = tennis, :age = 138, :email = ema...@asdfgmail.com) And did you restart the console after running the migration? -- Hassan Schroeder hassan.schroe...@gmail.com

[Rails] Re: mySQL setup - I'm losing it here.

2008-12-19 Thread Hassan Schroeder
, but it's `echo $PATH`, not `print`. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Noob - added a column via migration but get error on insert

2008-12-19 Thread Hassan Schroeder
to be restarted to learn about changes like this? I believe so -- but it should be easy enough to find out, eh? :-) Let me know if that doesn't fix the problem. -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received

[Rails] Re: Can duplicate back browser function in Rails?

2008-12-22 Thread Hassan Schroeder
a Rails developer means being a *Web* developer, and you can't be a Web developer without understanding the basic building blocks: HTML, CSS, HTTP. -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message

[Rails] Re: mySQL databases and Radiant...uggg

2008-12-22 Thread Hassan Schroeder
account - i got no password prompt regardless though... It wouldn't *appear* to be the admin account. What's the *exact* command you're using to log in before you try this 'grant' statement? -- Hassan Schroeder hassan.schroe...@gmail.com

[Rails] Re: how to use the observe_field to get more than one field?

2008-12-22 Thread Hassan Schroeder
in to the observe_field method ? Have you read the docs for the :with option? Seems like it should be just what you need: A JavaScript expression specifying the parameters for the XMLHttpRequest... -- Hassan Schroeder hassan.schroe...@gmail.com

[Rails] Re: No Configuration!!! WHAT?!

2008-12-24 Thread Hassan Schroeder
it. Then I'd suggest asking this on a Python(-related) mailing list, or the list/forum (assuming there is one) for this new framework. :-) -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: A question about select_tag

2008-12-25 Thread Hassan Schroeder
for `options_from_collection_for_select`. HTH, -- Hassan Schroeder hassan.schroe...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group

  1   2   3   4   5   6   7   8   9   10   >