[Rails] Re: :has_one association not letting me delete parent record

2009-06-29 Thread Ram
Anyone? ideas? i really am not able to figure this out.. nothing in the API docs, google is not being its dependable self.. On Jun 27, 11:58 am, Ram yourstruly.vi...@gmail.com wrote: Hi all, I have two models Order and Transaction witht he following relationship. Order has_one

[Rails] Cookie session domain for many sites

2009-06-29 Thread Dario Palmero
Hi! I have an issue that I think right now is like a rails cliche: I'm developing a Network, with a main site and secondary sites. The idea is that when you login in the main site, automatically you are login in the secondary sites (and viceversa). The obvious solution (one part at least) is

[Rails] Re: :has_one association not letting me delete parent record

2009-06-29 Thread Ram
Whats interesting is that if there is no transaction for a particular @order, then @order.destroy fails. But if there IS a transaction for the given @order, then @order.destroy returns true but the order is still there. It doesnt get deleted!! WEIRD! And the logs carry the same queries.. no

[Rails] Re: Problem with rake gems:install

2009-06-29 Thread Troels Knak-nielsen
Matt Jones wrote: Do you happen to have an RC version frozen in vendor/rails? That's my next guess... Nope, but it's an application that has been upgraded from an older version, so there might be some leftover somewhere, that is causing this. I'll try to see if I can replicate the issue in a

[Rails] error_messages_for + no template loaded

2009-06-29 Thread Petan Cert
Hey all, I have a model User. A new users can signup at /users/new I have a few lines of validations in my model. And if the registration attempt fails due to validations reasons, it displays page, but the css styles are not applied and it shows only the plain html. Any suggestions? Thx --

[Rails] Problem with 2.3 nested forms and new elements

2009-06-29 Thread Juan Kinunt
Hi, I'm using the new nested forms functionality and I having problems with new created elements. I have an invoice with lines. I would like to be able to create a new invoice, in the same form insert new lines dinamically and saving the invoice and the lines when everything is validated, not

[Rails] Adding registers in HABTM relationship.

2009-06-29 Thread Jose Ernesto Suarez
Hi! I have a little problem in a HABTM relationship. I have this schema: expedients --- expedients_documents --- documents expedients(HABTM)docuements - documetns(HABTM)expedients From the expedients view, I add a new document, passing as parameter the expedients ids (maybe more than

[Rails] Re: Line Length limit in posts

2009-06-29 Thread Tonypm
Sorry should have said I access the forum via browser on groups.google.com Tonypm --~--~-~--~~~---~--~~ 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

[Rails] Re: Complicated polymorphic relation

2009-06-29 Thread Adrien Coquio
Maybe my post isn't understandable ? I have to make this software and I'm trying to find a solution long time ago but unfortunately my search didn't give me any answer :S adrien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] page doesn't display flash[:notice] after redirect from rjs

2009-06-29 Thread Erwin
I register a user in with an Ajax request after saving a user, and setting the flash[:notice] = welcome message, I perform the rendering format.js { render :update do |page| page window.parent.Shadowbox.close(); #page.reload (?)

[Rails] Scan IP Range In Ruby on Rails

2009-06-29 Thread Ruby On rails
Is there any method to scan ip range in ruby on rails ! -- Posted via http://www.ruby-forum.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

[Rails] No route matches for stylesheets

2009-06-29 Thread Valentino Lun
Dear all Why the following error appear in development.log? Processing ApplicationController#index (for 160.1.42.69 at 2009-06-29 19:09:05) [GET] ActionController::RoutingError (No route matches /stylesheets/images/img02.gif with {:method=:get}):

[Rails] HTML page source not updated.

2009-06-29 Thread Valentino Lun
Dear all After I search something, it can successfully display the result in the browser. However, I view the Page source and found that the HTML code between the 'event_list' div tag is not updated , the content is same as before searchingIt is so strange. This problem happen in both IE and

[Rails] Scruffy gems

2009-06-29 Thread Doel Sengupta
Hi, I have written a code for drawing a graph with the scruffy gem, but the exact value of the bars are not visible. I have tries doing that with the renderer method and the standard.rb file. Neither I can do that with the layers.rb file. Please help. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Scan IP Range In Ruby on Rails

2009-06-29 Thread blasterpal
Are you trying to secure your Rails app via IP? You can use request headers in Rails to compare. You would have to use regex to compare for specific range. But it would be wiser to keep this out of Rails and do in Apache mod_proxy or whatever else you are proxy-ing with. H On Jun 29, 6:37 am,

[Rails] Re: HTML page source not updated.

2009-06-29 Thread Frederick Cheung
On Jun 29, 7:29 am, Valentino Lun rails-mailing-l...@andreas-s.net wrote: Dear all After I search something, it can successfully display the result in the browser. However, I view the Page source and found that the HTML code between the 'event_list' div tag is not updated , the content is

[Rails] Re: Aurigma Image uploader

2009-06-29 Thread Dmitry
Hello, Please read discussion on this problem on Aurigma managed forums: http://forums.aurigma.com/yaf_postst3688_Aurigma-image-uploaderin-rails.aspx On 26 июн, 19:54, Pravin Mhatre rails-mailing-l...@andreas-s.net wrote: Here is my controller code Also,   protect_from_forgery :except =

[Rails] Re: Imagebundle port

2009-06-29 Thread Nugroho Herucahyono
Hi.. I don't think it's possible, ImageScience is very simple, it can't be used to composite images. AFAIK, right now, we don't have any choice beside RMagick for this kind of jobs. On Mon, Jun 29, 2009 at 7:40 AM, nextpulserob...@nextpulse.com wrote: Hi - not sure if this is the place to

[Rails] Table Inheritance based on a function

2009-06-29 Thread bvdb
Hello, we have a problem in a CMS project that we believe is basic for RoR developement and could concern others as well - or have already: RoR implements the 'Single Table Inheritance' (STI) Pattern: http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html .. through its

[Rails] bulk emailer

2009-06-29 Thread Aldo Italo
i need a system for sendig automatically bulk email to 300 users, when my customer insert or update news. I've tryng with simple actionmailer, but it sending until 40 users. i read this: http://www.myowndb.com/blog/?p=20 but i ask myself if the method used is apt to rails 2.3.2 or exist a

[Rails] Re: page doesn't display flash[:notice] after redirect from rjs

2009-06-29 Thread Mukund
Use flash.now instead of plain flash when you do the assignment. -- from the API docs now() Sets a flash that will not be available to the next action, only to the current. flash.now[:message] = Hello current action This method enables you to use the flash as a central messaging system

[Rails] Re: bulk emailer

2009-06-29 Thread Mukund
Can you configure your SMTP server to be in queue mode as mentioned in the comment to that article? On Jun 29, 5:15 pm, Aldo Italo rails-mailing-l...@andreas-s.net wrote: i need a system for sendig automatically bulk email to 300 users, when my customer insert or update  news. I've tryng with

[Rails] Re: Scan IP Range In Ruby on Rails

2009-06-29 Thread Ruby On rails
Thanks , Basically i want to scan my network with ROR application is there any way or any API avail for this? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: rails application mysteriously takes a big chunk of memory

2009-06-29 Thread Mukund
Check for bad database queries that take a long time to execute and load more junk than you need. On Jun 27, 4:35 am, Developer In London ebilliona...@gmail.com wrote: I seem to be getting a problem where my rails application seems to be leaking memory when I load a page. It starts off at

[Rails] Re: No route matches for stylesheets

2009-06-29 Thread Mukund
use an absolute path for the image file. I think you can use /images/ img02.gif. On Jun 29, 4:19 pm, Valentino Lun rails-mailing-l...@andreas-s.net wrote: Dear all Why the following error appear in development.log? Processing ApplicationController#index (for 160.1.42.69 at 2009-06-29

[Rails] Re: Help: Webmonkey's Rails example NOT working on Bluehost

2009-06-29 Thread GuruOne
Dear Eric, Thxs for the suggestion - I have followed up on it - Bluehost support (as I expected) are not very knowledgeable in this area - not sure how long they will take to respond - will also be trying Bluehost forums but most of the info appears to be stale without resolutions. All other

[Rails] Re: No route matches for stylesheets

2009-06-29 Thread Aldo Italo
Valentino Lun wrote: background: #4E8CFF url(images/img02.gif) no-repeat; i think you correct with url(../images/img02.gif) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: About rubygems

2009-06-29 Thread Frederick Cheung
On Jun 29, 12:01 am, HeChian cfc...@gmail.com wrote: Hi all. My host install ruby in /usr/local/ but install rubygems in /home/user/ ruby/. so, when I startup my rails project it always return error to me said   that it couldn't find any rubygems lib. anybody knows how to solve it?

[Rails] Re: bulk emailer

2009-06-29 Thread Aldo Italo
Mukund wrote: Can you configure your SMTP server to be in queue mode as mentioned in the comment to that article? not, I have not understood where and how this must be configured. thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: page doesn't display flash[:notice] after redirect from rjs

2009-06-29 Thread erwin
Thanks for your help I did it, it doesn't solve this issue the notice is actually correctly set but the browser needs a manual refresh to display it a very small issue but taking me hours to solve ... On 29 juin, 14:29, Mukund marut...@yahoo.com wrote: Use flash.now instead of plain flash

[Rails] Complex forms with correct ids

2009-06-29 Thread Juan Kinunt
Hi, I would like to know if the last best solution is which is described here http://zilkey.com/2008/4/5/complex-forms-with-correct-ids or is there any better/different solution for this problem. Thanks in advance. -- Posted via http://www.ruby-forum.com/.

[Rails] Integration Tests

2009-06-29 Thread jd
I'm having trouble with Rails Integrations tests on Rails 2.3 not setting the query string on post actions. I'm testing a rails metal so when the env[QUERY_STRING] variable isn't set, in the test, the metal doesn't get any of the query string params. For some reason this is only set on a GET

[Rails] Re: redirect route after destroy doesn't work

2009-06-29 Thread Nicholas Henry
Nothing that stands out here (to me), would you mind posting your routes file. Cheers, Nicholas On Fri, Jun 26, 2009 at 1:34 PM, Herman Müllerrails-mailing-l...@andreas-s.net wrote: Hi Nicholas, thanks for your answer. Unfortunately i have no functional test, but here is my

[Rails] Re: HTML page source not updated.

2009-06-29 Thread Nicholas Henry
If you install the firebug extension for firefox there is an option to view the generated source. Cheers, Nicholas On Jun 29, 8:14 am, Frederick Cheung frederick.che...@gmail.com wrote: On Jun 29, 7:29 am, Valentino Lun rails-mailing-l...@andreas-s.net wrote: Dear all After I search

[Rails] Cannot Run Ruby on Rails on windows Vista or 7

2009-06-29 Thread Randika Rathugama
Hi There, I have installed ruby on rails on a windows 7 box as mentioned on the official ror manual and it works perfectly for some times. but when I refresh web browser page few times I got this error and now nothing is working on my pc. here is the error I get when i try to start the server

[Rails] Re: Cannot Run Ruby on Rails on windows Vista or 7

2009-06-29 Thread Frederick Cheung
On Jun 29, 10:26 am, Randika Rathugama randika.rathug...@gmail.com wrote: Hi There, I have installed ruby on rails on a windows 7 box as mentioned on the official ror manual and it works perfectly for some times. but when I refresh web browser page few times I got this error and now nothing

[Rails] Re: Cannot Run Ruby on Rails on windows Vista or 7

2009-06-29 Thread Randika Rathugama
Hi fred, That was so quick. Thanks you. unfortunately I figured it out (Not the Solution but the error) and just deleted the original mail post. And yes you are so correct something is wrong with my routes.rb file. On Jun 29, 7:27 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Jun

[Rails] Re: Adding registers in HABTM relationship.

2009-06-29 Thread Jose Ernesto Suarez
Solved.I write a comment for newbies as me...sorry for the english. The problem raises from the generation of the join table.This table, cannot must have a id attribute as a primary key, instead of this, must have a primary key composed by the two foreign keys.In Rails, this means a :id = false

[Rails] undefined method 'new_search' after upgrading SearchLogic

2009-06-29 Thread Joe Peck
Hey, I just upgraded from searchlogic-1.6.6 to searchlogic-2.1.1, and now I'm getting some new errors. Previously, in the model I could have something like this: def self.search(criteria, options={}) criteria ||= {} search = self.new_search blah blah blah end and it would work.

[Rails] Re: About rubygems

2009-06-29 Thread Matt Jones
Assuming that you mean they install gems (the packages, not the package *manager* rubygems) in /home/user/gems, take a look at this article on setting GEM_HOME: http://helpdesk.bluehost.com/index.php/kb/article/000365 --Matt Jones On Jun 29, 12:01 am, HeChian cfc...@gmail.com wrote: Hi all.

[Rails] Re: Adding registers in HABTM relationship.

2009-06-29 Thread Matt Jones
You might as well skip the timestamps as well, as the HABTM table with extra fields functionality disappeared in 2.3. --Matt Jones On Jun 29, 10:39 am, Jose Ernesto Suarez suarez.erne...@gmail.com wrote: Solved.I write a comment for newbies as me...sorry for the english. The problem raises

[Rails] Mongrel Malformed Request error - help!

2009-06-29 Thread Adam Wilson
I've just migrated my system over to a new macbook. I've been having a nightmare today trying to get the site I'm working on to work... All gems are in place, MySQL etc. However - I am stuck on this error form Mongrel: HTTP parse error, malformed request (127.0.0.1): #Mongrel::HttpParserError:

[Rails] Re: Mongrel Malformed Request error - help!

2009-06-29 Thread Maurício Linhares
Mongrel doesn't support SSL, you'll have to disable this on dev mode. - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Mon, Jun 29, 2009 at 12:32 PM, Adam Wilsonrails-mailing-l...@andreas-s.net wrote: I've just migrated my system over to a new macbook.

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread Matt Jones
The :orthologs association is the problem - Rails doesn't support nesting :through associations. I recall there being a plugin around someplace to do it, so you may want to look into that. Depending on what you need, a simple instance method may work as well. For example (on Gene): def

[Rails] Re: Question about a date range selector

2009-06-29 Thread Matt Jones
One thing - if you're only ever going to be interested in the date, I'd recommend changing the compiled_on field to a date, rather than a datetime. That will eliminate the off by 1 second thing you're seeing. --Matt Jones On Jun 28, 9:02 am, Älphä Blüë rails-mailing-l...@andreas-s.net wrote:

[Rails] Re: Determine if a time is within certain hours of the day

2009-06-29 Thread Rob Biedenharn
On Jun 27, 2009, at 9:08 PM, Jason Burgett wrote: Ok, the real calculation I'm trying to do is between 12:00am and 4:00am cuurent_time = Time.now (current_time.hour 0) and (current_time.hour = 4) If the current time is 00:17:24... Duh, just figure out my error. I was doing that but

[Rails] Re: Mongrel Malformed Request error - help!

2009-06-29 Thread Adam Wilson
Maurício Linhares wrote: Mongrel doesn't support SSL, you'll have to disable this on dev mode. - Maur�cio Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Mon, Jun 29, 2009 at 12:32 PM, Adam Thanks We had this all working before on my old macbook, I cannot

[Rails] Re: Looking for Ideas on Scheduling + Day by Day View of Week

2009-06-29 Thread Marnen Laibow-Koser
Richard Schneeman wrote: Looks like this question is more of an html/presentation question, you may get more help on a different forum. Yup. If you're looking for an application like google calender, I would recommend javascript, its a hair difficult to debug, but it will render the

[Rails] [ANN] LSRC 2009: Don't Miss Your Chance To See Matz!

2009-06-29 Thread jimfreeze
Hello The 2009 Lone Star Ruby Conference is just around the corner and conference tickets are moving faster than small-town gossip. This year you can choose from eleven training classes that are as fine as dollar cotton. LSRC training is covering some of the best and newest technologies in

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread John Woods
The plural model name comes from the Agile Development book. They have an example--categories_products, linking categories to products--which they turn into a model. Should it be renamed category_product? Or is categories_product correct? I'm a bit confused about this, so thanks for bringing it

[Rails] custom finder in associated model.

2009-06-29 Thread byrnejb
I have a model for which I have provided a customer finder method, 'find_one_by_date(params)', where params is a hash. This method always returns one or no record from the DB. I would like to define an association, has_one, from another model to this one, passing the params hash and using the

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread Marnen Laibow-Koser
I'll look at the rest of your example later, but... John Woods wrote: The plural model name comes from the Agile Development book. They have an example--categories_products, linking categories to products--which they turn into a model. Should it be renamed category_product? [...] If I had to

[Rails] Re: Complicated polymorphic relation

2009-06-29 Thread Adrien Coquio
I'm sorry, I didn't post that to bump my post. It's just because I know my English level is very low and I don't know if my post is understandable, if not I can ask friend to help me for explain what I want. In that way, you could say me and i will do, else I wait an answer and don't bump my post

[Rails] Using rails for testing a non-Rails web app

2009-06-29 Thread Jim Knowlton
I have a question...right now I work at a place where we have implemented an automated test framework in Ruby-Watir-RSpec. The application is a Java-based web application. My question is...is there any value to setting up a Rails app as a test environment and then run tests against our Java web

[Rails] Re: undefined method 'new_search' after upgrading SearchLogic

2009-06-29 Thread senthil raja
Hi joe I am facing pacing pagination problem with searchlogic logic gem. Do you have some related problem On Mon, Jun 29, 2009 at 8:25 PM, Joe Peck rails-mailing-l...@andreas-s.netwrote: Hey, I just upgraded from searchlogic-1.6.6 to searchlogic-2.1.1, and now I'm getting some new

[Rails] 6 Steps to Refactoring Rails -- http://bit.ly/116BST

2009-06-29 Thread LJMecca
Thought people would find this blog useful. Since December, Rails has undergone a fairly significant internal refactoring in quite a number of areas. Yehuda Katz has honed a process for diving into a new area of the codebase and emerging some time later with a much improved area that does

[Rails] Re: Complicated polymorphic relation

2009-06-29 Thread Marnen Laibow-Koser
Adrien Nom wrote: I'm sorry, I didn't post that to bump my post. It's just because I know my English level is very low and I don't know if my post is understandable, if not I can ask friend to help me for explain what I want. Then I'm sorry for having responded in the way I did. Yes, it

[Rails] Re: Using rails for testing a non-Rails web app

2009-06-29 Thread Marnen Laibow-Koser
Jim Knowlton wrote: I have a question...right now I work at a place where we have implemented an automated test framework in Ruby-Watir-RSpec. The application is a Java-based web application. My question is...is there any value to setting up a Rails app as a test environment and then run

[Rails] Re: undefined method 'new_search' after upgrading SearchLogic

2009-06-29 Thread Joe Peck
senthil raja wrote: Hi joe I am facing pacing pagination problem with searchlogic logic gem. Do you have some related problem On Mon, Jun 29, 2009 at 8:25 PM, Joe Peck The new SearchLogic gem doesn't do pagination anymore. They recommend using will_paginate, which works pretty well

[Rails] Re: Using rails for testing a non-Rails web app

2009-06-29 Thread mike
Rails will not help you test an other app 2009/6/29, Jim Knowlton jknowlton...@gmail.com: I have a question...right now I work at a place where we have implemented an automated test framework in Ruby-Watir-RSpec. The application is a Java-based web application. My question is...is there

[Rails] Replacing XML tag with a string based on parameters in tag?

2009-06-29 Thread Yanni Mac
I am trying to figure out a (better) way to do the following: some_string = Display a widget here - widget1234/widget new_string = replace_widgets_in_string(some_string) p new_string = #Display a widget here - Widget 1234 is blue the method replace_widgets_in_string will need to pick out the

[Rails] Re: Invalid source reflection macro?

2009-06-29 Thread John Woods
So the plugin appears to work. FYI, it's here: git://github.com/ianwhite/nested_has_many_through.git Unfortunately, I'm still having trouble setting up the condition. I've renamed a few things and added appropriate associations: class Gene ActiveRecord::Base belongs_to :species has_many

[Rails] Re: Replacing XML tag with a string based on parameters in tag?

2009-06-29 Thread Philip Hallstrom
On Jun 29, 2009, at 11:33 AM, Yanni Mac wrote: I am trying to figure out a (better) way to do the following: some_string = Display a widget here - widget1234/widget new_string = replace_widgets_in_string(some_string) p new_string = #Display a widget here - Widget 1234 is blue the method

[Rails] Re: Problem with rake gems:install

2009-06-29 Thread Matt Jones
Ari: your problem is in lib/tasks/localization.rake. You require config/environment, which loads the initializer and causes the error. The gems tasks never even get a chance to run. Troels - I'd recommend that you look for the same kind of thing in your Rakefiles. --Matt Jones On Jun 28, 6:37 

[Rails] Problem with mixins and filters

2009-06-29 Thread Brian Hartin
Hi all, I am stumped with the following problem: * A module, which is mixed into a controller, defines two methods, 'a' and 'b' * 'a' calls 'b' * 'b' might be overriden in the controller * when 'a' is called as a 'before_filter', it always calls the version of 'b' defined in the mixin module,

[Rails] Re: Problem with mixins and filters

2009-06-29 Thread Brian Hartin
Brian Hartin wrote: Never mind. I had another problem which mislead me; the example I gave works perfectly once I correct the other problem. Hi all, I am stumped with the following problem: * A module, which is mixed into a controller, defines two methods, 'a' and 'b' * 'a' calls 'b'

[Rails] Re: page doesn't display flash[:notice] after redirect from rjs

2009-06-29 Thread erwin
found a solution but I have to understand why it runs... the issue was not the display of the flash notice in the home page, but the redirection to the home page from within the rjs file in my rjs file I need to write page window.parent.Shadowbox.close(); page

[Rails] Order for a each loop

2009-06-29 Thread Shandy Nantz
I have a model for users and another model for linenumbers and I have some code that looks like: @user.linenumbers.each do |line| end and it loops through a user and their line numbers. What if I want to order this list, is there a way to do that? I know I could just put these linenumbers

[Rails] How to sanitize a link?

2009-06-29 Thread Xdmx Xdmx
Hi, i wan't to permit users to send their own content, text, html, and stuff like that. It should also be permit them to send their own design, using div, span, internal style attributes and so on. Obviously i'd like to protect everything forbidding javascript, but permitting object and embedded

[Rails] How to Scale Your Ruby Applications

2009-06-29 Thread sbinsider
Engine Yard's Ezra Zygmuntowicz offers five tips on how to scale Ruby on Rails applications, including caching techniques to keep the load off application servers and databases. http://bit.ly/tgkQA --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: Order for a each loop

2009-06-29 Thread Frederick Cheung
On Jun 29, 5:31 pm, Shandy Nantz rails-mailing-l...@andreas-s.net wrote: I have a model for users and another model for linenumbers and I have some code that looks like: @user.linenumbers.each do |line| end and it loops through a user and their line numbers. What if I want to order

[Rails] Re: Order for a each loop

2009-06-29 Thread Rob Biedenharn
On Jun 29, 2009, at 5:31 PM, Shandy Nantz wrote: I have a model for users and another model for linenumbers and I have some code that looks like: @user.linenumbers.each do |line| end and it loops through a user and their line numbers. What if I want to order this list, is there a way to

[Rails] Re: Question about a date range selector

2009-06-29 Thread Älphä Blüë
Matt, good call there mate. I created some constants for each week start and end: WEEK_ONE_START = 2009-06-21 WEEK_ONE_END = 2009-06-27 And then defined that in a per search scope: named_scope :compiled_week_one, lambda { { :conditions = ['compiled_on ? and compiled_on ?', WEEK_TWO_START,

[Rails] Re: Question about a date range selector

2009-06-29 Thread Älphä Blüë
Älphä Blüë wrote: And then defined that in a per search scope: named_scope :compiled_week_one, lambda { { :conditions = ['compiled_on ? and compiled_on ?', WEEK_TWO_START, WEEK_TWO_END] } } Actually reads WEEK_ONE_START and WEEK_ONE_END.. -- Posted via http://www.ruby-forum.com/.

[Rails] Pass variable to RJS

2009-06-29 Thread Alex Barlow
Ok, so, ive got a link and a rjs file, is there a way i can pass a variable to the rjs by the remote_to link example... %= link_to_remote All, :url = 'all' % %= link_to_remote Messages, :url = 'messages' % %= link_to_remote Requests, :url = 'requests' % %=

[Rails] Re: Problem with rake gems:install

2009-06-29 Thread Ari Maniatis
Matt: thank you so much for finding that. I have removed it and the problem goes away as you say. Can I recommend some improvements to Rails to help others in this predicament: * rake gems:install should not try to load all the rake tasks since it has a very specific job to do and should not be

[Rails] [ANN] ri_cal 0.7.0 Released

2009-06-29 Thread Rick DeNatale
Subject: [ANN] ri_cal 0.7.0 Released ri_cal version 0.7.0 has been released! * http://ri-cal.rubyforge.org/ * by Rick DeNatale A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating icalendar files, but

[Rails] Re: ROR on top of a non-SQL database

2009-06-29 Thread Travis Reeder
We've built a drop in replacement for ActiveRecord called SimpleRecord: http://code.google.com/p/simple-record/ Just make your models extend SimpleRecord::Base instead of ActiveRecord::Base and you're good to go. Travis On May 22, 10:12 am, kretch yaronkretch...@gmail.com wrote: SoSimpleDBis

[Rails] Authlogic password problems using rspec

2009-06-29 Thread Yoann-Z
Hi, I have a problem using rspec with my rspec tests with my application. I used authlogic to create my athentication system, following the video on railscast. It works fine with cucumber, but I always have a problem with rspec : ActiveRecord::StatementInvalid in 'ApplUsersController new action

[Rails] Saving foreign key id's using form_for?

2009-06-29 Thread Jesterman81
Greetings Ladies and Gents, I am learning rails and am wondering about a best practice? Currently I am trying to save specific tasks for a project. So tasks has a belongs_to :project and project does has_many :tasks. Well when creating a new task I need to store to project_id in the tasks

[Rails] render (:xml=:model) based transformation

2009-06-29 Thread flash
Hi, Trying to get my head around how Rails works. I am trying to generate an xml representation of a model's list view. It works well when I try to simply use format.xml { render :xml=@models } But I need to change the name of the elements slightly. Tried to use an action.rxml template using

[Rails] [ANN/ADV] Ruby Best Practices now in print!

2009-06-29 Thread Gregory Brown
Hi folks, If you haven't already heard, my book Ruby Best Practices is now available in print! The whole manuscript will be made freely available under a creative commons license in March 2010, but now is the time to buy a copy if you want to support my efforts as well as O'Reilly for

[Rails] Re: Authlogic password problems using rspec

2009-06-29 Thread Conrad Taylor
On Mon, Jun 29, 2009 at 4:06 PM, Yoann-Z yoann.zim...@gmail.com wrote: Hi, I have a problem using rspec with my rspec tests with my application. I used authlogic to create my athentication system, following the video on railscast. It works fine with cucumber, but I always have a problem