Created
August 15, 2008 11:20
-
-
Save radar/5565 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Thu Jul 21 22:30:00 +0930 2005](~rsl@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Thu Jul 21 22:31:00 +0930 2005]Howdy! Does anyone know if HtmlEngine is a gem or not? | |
[Thu Jul 21 22:39:00 +0930 2005]aqua: yes I searched, but login_generator installs [in an app] as "login_system" so I wasn't sure if it just had another name or was custom code in Typo. | |
[Thu Jul 21 22:40:00 +0930 2005]I'm going to assume it's not a gem. | |
[Thu Jul 21 22:43:00 +0930 2005]Thanks! | |
[Thu Jul 21 22:43:00 +0930 2005](~rsl@c-24-98-180-17.hsd1.ga.comcast.net) left #rubyonrails. | |
[Mon Aug 08 11:28:00 +0930 2005](N=rsl@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Mon Aug 08 11:28:00 +0930 2005]Morning, everybody! | |
[Mon Aug 08 11:29:00 +0930 2005]Does anyone know how to save information to a text file using RoR? | |
[Mon Aug 08 11:30:00 +0930 2005]I had a feeling it was in Ruby itself rather than rails. Which would be why all my googling added up to nada. | |
[Mon Aug 08 11:31:00 +0930 2005]I'll only have one user [ever] writing to that file, so hopefully the multithreading shouldn't be an issue. [Though I'm not sure about multithreading to begin with.] | |
[Mon Aug 08 11:57:00 +0930 2005]Excess Flood | |
[Mon Aug 08 13:53:00 +0930 2005](N=rsl@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Mon Aug 08 13:54:00 +0930 2005]Anyone ever manually called ActiveRecord::Base.connection.create_table? | |
[Mon Aug 08 13:56:00 +0930 2005]It's not actually [go figger that RoR makes it easy-ish] but I'm looking for an actual example. I'm getting an error. | |
[Mon Aug 08 14:01:00 +0930 2005]Failing anyone having gotten all down and dirty with the ActiveRecord::Base, can anyone tell me how to make sure a database exists? | |
[Mon Aug 08 14:32:00 +0930 2005] | |
[Mon Aug 08 16:38:00 +0930 2005](N=rsl@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Mon Aug 08 16:40:00 +0930 2005]Client Quit | |
[Mon Aug 08 18:23:00 +0930 2005](N=rsl@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Mon Aug 08 18:24:00 +0930 2005]How do you pass a title attribute via the link_to method? | |
[Mon Aug 08 18:27:00 +0930 2005]Thanks technoweenie... I had my brackets a little confused there [my :controller was outside the bracket]. | |
[Mon Aug 08 18:28:00 +0930 2005]I was close, just putting the :controller where it was made four things to pass not three. | |
[Mon Aug 08 18:35:00 +0930 2005] | |
[Wed Sep 14 14:07:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Wed Sep 14 14:09:00 +0930 2005]Is it possible to use Rails' AJAX helpers to control/reload/whatever an element from a popup window? | |
[Wed Sep 14 14:12:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) left #rubyonrails. | |
[Wed Sep 14 17:23:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Wed Sep 14 17:25:00 +0930 2005]How the heck do you use form_remote_tag with a file_field? I've been trying for almost an hour but can't get anything to work. | |
[Wed Sep 14 17:26:00 +0930 2005]madrobby: any known workarounds? | |
[Wed Sep 14 17:26:00 +0930 2005]:/ | |
[Wed Sep 14 17:29:00 +0930 2005]madrobby: Thanks immensely. I thought I was just effin' up somewhere simple. It's almost reassuring to know that there was no way I could have done it. ;) | |
[Wed Sep 14 17:37:00 +0930 2005]Yes, Dreamer3. | |
[Wed Sep 14 17:37:00 +0930 2005][Just not through AJAX, sadly.] | |
[Wed Sep 14 17:44:00 +0930 2005] | |
[Thu Sep 15 16:44:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Thu Sep 15 16:47:00 +0930 2005]If you've got a table that doesn't require its own controller do you still need to create a model for it via 'ruby script/generate'? Or is there somewhere generic to add the necessary validations and relations? | |
[Thu Sep 15 17:09:00 +0930 2005]What the heck IS waglo? | |
[Thu Sep 15 17:10:00 +0930 2005]doing, that is. | |
[Thu Sep 15 17:14:00 +0930 2005] | |
[Fri Sep 16 12:39:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Fri Sep 16 12:39:00 +0930 2005]morning! | |
[Fri Sep 16 12:49:00 +0930 2005]Is there a way to call link_to from a model? | |
[Fri Sep 16 12:51:00 +0930 2005]Hybrid: I need/want a "smart" link a la client.name but like client.link which returns a link. | |
[Fri Sep 16 12:55:00 +0930 2005]Hybrid: I guess [in order to keep MVC] I'm really looking for a cleaner way to pass the client.id than: some_function client_id | |
[Fri Sep 16 13:08:00 +0930 2005]Hybrid: Another question... If I added a method (status) to the model Client which translates the client.state from a 0/1 term into human terms, is that breaking MVC? | |
[Fri Sep 16 13:08:00 +0930 2005]Thanks, Hybrid. | |
[Fri Sep 16 13:10:00 +0930 2005] | |
[Fri Sep 23 10:11:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Fri Sep 23 10:14:00 +0930 2005]Client Quit | |
[Tue Sep 27 12:25:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Tue Sep 27 13:19:00 +0930 2005] | |
[Fri Sep 30 12:51:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Fri Sep 30 12:52:00 +0930 2005]Besides validations, what else would cause @some_db_object.save to fail? | |
[Fri Sep 30 12:58:00 +0930 2005]Um... lemme try the question this way... If there are no validations on an object, will @some_db_object.save EVER fail? | |
[Fri Sep 30 13:00:00 +0930 2005]SkizW, I've had to manual error-check on what got saved, so I know that the one thing [a file's content-type] is legitimate. Short of that, might I be safe to just assume it gets saved? | |
[Fri Sep 30 13:01:00 +0930 2005]manual = manually | |
[Fri Sep 30 13:02:00 +0930 2005]That's what I've got right now, but I can't come up with user-friendly explanation of what went wrong and why the user's not where he thinks he should be. | |
[Fri Sep 30 13:05:00 +0930 2005]Huh? | |
[Fri Sep 30 13:06:00 +0930 2005]Oh, that'd be why I didn't recognize it. I've got to be one of the few geektypes that don't care for the Simpsons. | |
[Fri Sep 30 13:08:00 +0930 2005]So what exactly happens in here all day? Just people coming in and out asking questions or do people hang out and such? | |
[Fri Sep 30 13:10:00 +0930 2005]How do you get actual work done? [I usually ask my questions and vanish, for which rudeness I apologize for] | |
[Fri Sep 30 13:11:00 +0930 2005]I'm gonna give sitting/lurking in here a spin today. | |
[Fri Sep 30 13:13:00 +0930 2005]SkizW, so it's a stress reliever, eh? That's kind of why I'd like to leave the window open myself. Something to rest the brain or at least think about problems other than my own. | |
[Fri Sep 30 13:14:00 +0930 2005]How many of you kittens are making money working with the Rails? | |
[Fri Sep 30 13:14:00 +0930 2005]Everybody's a kitten, kitten. | |
[Fri Sep 30 13:14:00 +0930 2005]Kittens are just like smotchkisses. ;) Only meaner. | |
[Fri Sep 30 13:17:00 +0930 2005]chiptmatt, I understand. I'm using Rails to power a backend CMS-y thing for some sites I'm working on [and planning for future sites]. | |
[Fri Sep 30 13:18:00 +0930 2005]I'm beginning to think I might just understand Rails a little now though. | |
[Fri Sep 30 13:19:00 +0930 2005]chiptmatt, so you've been working with file uploads a lot as well. :/ | |
[Fri Sep 30 13:19:00 +0930 2005]Not even admin-side? | |
[Fri Sep 30 13:20:00 +0930 2005]Oh... | |
[Fri Sep 30 13:22:00 +0930 2005]chiptmatt, my project enables artists [visual types, not musicians--yet] to update their site without the designer's involvement for every little thing. Kind of like if you crammed blogging and image gallery apps together, but not so much. | |
[Fri Sep 30 13:22:00 +0930 2005]So uploading images is part and parcel of the app. | |
[Fri Sep 30 13:22:00 +0930 2005]Not so much. | |
[Fri Sep 30 13:23:00 +0930 2005]No offense taken. | |
[Fri Sep 30 13:25:00 +0930 2005]nzoschke, when I try that in irb I get "undefined method 'each' for nil:NilClass" | |
[Fri Sep 30 13:25:00 +0930 2005]It never makes it inside, does it? | |
[Fri Sep 30 13:29:00 +0930 2005]chiptmatt, don't you mean "for ticket in type ... end if type? | |
[Fri Sep 30 13:31:00 +0930 2005]I meant to end my quotes as well. ;) | |
[Fri Sep 30 13:31:00 +0930 2005]NP | |
[Fri Sep 30 13:32:00 +0930 2005]Kinsbane, did you download Rails/Gems? etc? | |
[Fri Sep 30 13:35:00 +0930 2005]Kinsbane, why Postgresql? | |
[Fri Sep 30 13:37:00 +0930 2005]Kinsbane, just wondering. | |
[Fri Sep 30 13:39:00 +0930 2005]x_or, it sounds like you actually have tabular data, right? | |
[Fri Sep 30 13:40:00 +0930 2005]You can use tables for that and not feel shame. | |
[Fri Sep 30 13:40:00 +0930 2005]Tables are only bad for layout not displaying data. | |
[Fri Sep 30 13:40:00 +0930 2005]x_or, you can still style the td/tr/whatever. | |
[Fri Sep 30 13:41:00 +0930 2005][opie], I was one of those people who were averse to tables until working with Rails and dbs so much lately. | |
[Fri Sep 30 13:44:00 +0930 2005]Jesus, those nested divs make me remember the old days of tables within tables [recurse]. | |
[Fri Sep 30 13:50:00 +0930 2005]When did 1.8.3 come out? And why do I [luckily] have 1.8.2? | |
[Fri Sep 30 13:51:00 +0930 2005][opie], Windoze. Checking the URL now. | |
[Fri Sep 30 13:52:00 +0930 2005]Thank god I've been in my own little world lately instead of updating things like I normally do. | |
[Fri Sep 30 13:58:00 +0930 2005]<3 Ruby | |
[Fri Sep 30 14:00:00 +0930 2005]Does anyone else use SciTE? | |
[Fri Sep 30 14:07:00 +0930 2005]Howdy | |
[Fri Sep 30 14:16:00 +0930 2005]I have a super-dumb question: Does it matter if require_dependency 'whatever' is on the inside or outside of a class declaration? | |
[Fri Sep 30 14:31:00 +0930 2005]giant_sloar, what's this about MySQL commercial licensing? | |
[Fri Sep 30 14:35:00 +0930 2005]srbaker, mysql doesn't require an adapter though, right? | |
[Fri Sep 30 14:36:00 +0930 2005]true. | |
[Fri Sep 30 14:36:00 +0930 2005]How many people here use MySQL? | |
[Fri Sep 30 14:38:00 +0930 2005]Does this licensing thingie apply to using a MySQL server or just running one? | |
[Fri Sep 30 14:40:00 +0930 2005]giant_sloar, aren't Rails apps by nature open source? [since you really can't hide the code from a client] | |
[Fri Sep 30 14:43:00 +0930 2005]Okay... So if I use a MySQL db in developping a website for a client and get paid for it... I've got to get a license? That doesn't sound right. | |
[Fri Sep 30 14:46:00 +0930 2005]giant_sloar, so I'm "safe" because I'm not packaging the db as part of the CMS, but it's something you have to bring to the table yourself? | |
[Fri Sep 30 14:50:00 +0930 2005]@object.id or @object.id.to_s ?? | |
[Fri Sep 30 14:52:00 +0930 2005]flzz, isn't the table row the same as the object? | |
[Fri Sep 30 14:53:00 +0930 2005]Ah, I actually remember that now. | |
[Fri Sep 30 14:54:00 +0930 2005]peter_123, assuming you've already done "for individual_thing in @list_of_things", individual_thing.id should work. individual_thing.id.to_s, if not. | |
[Fri Sep 30 14:55:00 +0930 2005]column.id, yup. | |
[Fri Sep 30 14:56:00 +0930 2005]ActiveView doesn't care about datatypes, right? No need to column.id.to_s, right? | |
[Fri Sep 30 14:57:00 +0930 2005]peter_123, what kind of object does Applicant.content_columns return? | |
[Fri Sep 30 14:59:00 +0930 2005]I don't deal with numbers enough to know off the top of my head how to format them. | |
[Fri Sep 30 15:02:00 +0930 2005]giant_sloar, but doesn't the web hosting that "comes with" MySQL already have a license? | |
[Fri Sep 30 15:04:00 +0930 2005]flzz, that's what we were discussing too. | |
[Fri Sep 30 15:05:00 +0930 2005]I wonder if Six Apart pays for licenses. That'd answer the question. Maybe. | |
[Fri Sep 30 15:06:00 +0930 2005][Since MoveableType uses MySQL] | |
[Fri Sep 30 15:06:00 +0930 2005]peter_123, I don't think that Applicants.whatever returns a list of applicant objects, I bet. | |
[Fri Sep 30 15:08:00 +0930 2005]Your Applicant.content_columns. | |
[Fri Sep 30 15:08:00 +0930 2005]What's that contain? | |
[Fri Sep 30 15:09:00 +0930 2005]So Applicant.content_columns is a collection of Applicant objects? | |
[Fri Sep 30 15:10:00 +0930 2005]Or, at least, a collection of bits of Applicant objects? | |
[Fri Sep 30 16:14:00 +0930 2005] | |
[Mon Oct 03 07:59:00 +0930 2005](n=RSL@c-24-98-180-17.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Mon Oct 03 07:59:00 +0930 2005]What's wrong with this statement: | |
[Mon Oct 03 08:00:00 +0930 2005]validates_presence_of :section_id, if Page.title != 'Home' | |
[Mon Oct 03 08:00:00 +0930 2005]? | |
[Mon Oct 03 08:00:00 +0930 2005]I think I see it. | |
[Mon Oct 03 08:00:00 +0930 2005]The => is missing for one. | |
[Mon Oct 03 08:01:00 +0930 2005]technoweenie, that code I wrote sent WEBrick into a spin. | |
[Mon Oct 03 08:01:00 +0930 2005]:/ | |
[Mon Oct 03 08:03:00 +0930 2005]technoweenie, how the heck do I make an exception for a validation? | |
[Mon Oct 03 08:03:00 +0930 2005]I've got one "Page" that _does_ take nil/0/whatever as a section_id. | |
[Mon Oct 03 08:04:00 +0930 2005]I know it's title [and it can't be edited]. | |
[Mon Oct 03 08:04:00 +0930 2005]I' | |
[Mon Oct 03 08:05:00 +0930 2005]I'm looking at the docs which don't have an exception per se, but rather when to perform the test. | |
[Mon Oct 03 08:05:00 +0930 2005]there's an :on, :if, and :message, but I see no unless or except. | |
[Mon Oct 03 08:06:00 +0930 2005]Use your caps release, court3nay. | |
[Mon Oct 03 08:07:00 +0930 2005]The record exists already though, techno... | |
[Mon Oct 03 08:08:00 +0930 2005]Wait... | |
[Mon Oct 03 08:08:00 +0930 2005]Is Proc something specific to the validation? | |
[Mon Oct 03 08:08:00 +0930 2005]D'oh. | |
[Mon Oct 03 08:09:00 +0930 2005]That'd be where I've been screwing this up. | |
[Mon Oct 03 08:09:00 +0930 2005]I figured it was something that I was just missing. | |
[Mon Oct 03 08:09:00 +0930 2005]See, I'm not _that_ stupid. | |
[Mon Oct 03 08:12:00 +0930 2005]I was going to [profusely] thank technoweenie but [s]he sees to have disappeared. :/ | |
[Mon Oct 03 08:13:00 +0930 2005]court3nay, somebody ate their Wheaties[tm] this morning, din't they? | |
[Mon Oct 03 08:14:00 +0930 2005]court3nay, is habtm.com your site? | |
[Mon Oct 03 08:14:00 +0930 2005]That's so effed up stuff. I like it. | |
[Mon Oct 03 08:14:00 +0930 2005]so = some. | |
[Mon Oct 03 08:17:00 +0930 2005]court3nay, why don't the comments "tumble"? | |
[Mon Oct 03 08:25:00 +0930 2005]I've never seen it so quiet in here. | |
[Mon Oct 03 08:26:00 +0930 2005]8:30 here, but I was sure there were more Europeans involved around here. | |
[Mon Oct 03 08:27:00 +0930 2005]court3nay, I'm in the US. | |
[Mon Oct 03 08:27:00 +0930 2005]Back at school? | |
[Mon Oct 03 08:27:00 +0930 2005]As in "high"? | |
[Mon Oct 03 08:42:00 +0930 2005]Howdy! | |
[Mon Oct 03 09:26:00 +0930 2005]brianm, I just took a toke. ;) | |
[Mon Oct 03 09:27:00 +0930 2005] | |
[Fri Feb 10 14:00:00 +1030 2006](n=fake@c-24-99-115-174.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Fri Feb 10 14:20:00 +1030 2006] | |
[Sat Feb 11 22:21:00 +1030 2006](n=fake@c-24-99-115-174.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Sat Feb 11 22:23:00 +1030 2006]Can someone guide me through paginating through an 'acts_as_taggable' collection? [I can't figure out a better way to ask that.] | |
[Sat Feb 11 22:43:00 +1030 2006]I did it! Woohoo! I managed to adapt the "classic" pagination from the API docs to paginate my collection! | |
[Sat Feb 11 22:47:00 +1030 2006]I guess, but the standard pagination uses constants and I couldn't figure out how to hack it. | |
[Sat Feb 11 23:01:00 +1030 2006] | |
[Wed Feb 15 14:44:00 +1030 2006](n=fake@c-24-99-115-174.hsd1.ga.comcast.net) joined #rubyonrails. | |
[Wed Feb 15 14:45:00 +1030 2006]I can't get map.catchall '*whatever', :controller => 'some_controller', :action => 'some_action' to work. Can anyone help me? | |
[Wed Feb 15 14:47:00 +1030 2006]Goynang: I get redirected to the 404.html | |
[Wed Feb 15 14:48:00 +1030 2006]yep. | |
[Wed Feb 15 14:49:00 +1030 2006]Goynang: map.catchsomethingelse '/somethingelse' with the same controllers does me right. It's the '*anything' that seems to be the problem. | |
[Wed Feb 15 14:52:00 +1030 2006]Goynang... This would be a prime example of single vs double quotes. No variable interpolation there. [Even though ':controller/:id' seems to be an interpolation]. | |
[Wed Feb 15 14:52:00 +1030 2006]Thanks anyhow, Goynang | |
[Wed Feb 15 14:53:00 +1030 2006]I see. | |
[Wed Feb 15 14:53:00 +1030 2006]Oh, I got it working. Using the double quotes makes it work fine. | |
[Wed Feb 15 14:54:00 +1030 2006]Who knows? | |
[Wed Feb 15 14:55:00 +1030 2006]JJenZz, what's the problem? | |
[Wed Feb 15 15:35:00 +1030 2006] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment