[Rails] Re: accepts nest attributes attr_accessible

2010-05-20 Thread Sharagoz
On May 20, 12:14 am, brianp brian.o.pea...@gmail.com wrote: If the user updates the profile and it's processed via the dealer then this would not be an issue because it would still be in context That is correct, however if you set the dealer_id to readonly, then it is not possible for the user

[Rails] nill object error

2010-05-20 Thread Ravi Dtv
def grouplist @currentgroupid=Group.find_by_group_name(params[:group_name]) @currentgroupfriends=GroupFriend.find_all_by_user_id_and_group_id(current_user.id,@currentgroupid) format.html {redirect_to :back} end Please check my controller and help me in solving my problem. I need to

Re: [Rails] sql statement help

2010-05-20 Thread Franz Strebel
On Thu, May 20, 2010 at 5:26 AM, nirosh kunalan.kand...@gmail.com wrote: i need to find records which are starts with numeric values. So how can i write the sql query? Read the documentation on LIKE and regular expressions for your db. -- You received this message because you are subscribed

[Rails] plugins error

2010-05-20 Thread Rajkumar Surabhi
HI, in my applicaition i want to use automatic sesssion cleaning. i followed the website http://agilewebdevelopment.com/plugins/limited_sessions I have download this plugin, then configured session life time in environment.rb like CGI::Session::ActiveRecordStore::Session.recent_activity_limit

[Rails] t alias doesn't work

2010-05-20 Thread badnaam
I18n.t works but t alias doesn't. This is rails 2.3.5. Thanks -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Activerecord association design advice

2010-05-20 Thread Sharagoz
Hi, ok if you replace (...) would it make more sense? Absolutly! For a while there I was wondering if you were setting out to program the matrix. Abstracting an objects attributes into it's own table with a one-to- many (or many-to-many) association between the object and attributes should be

[Rails] Generate a PDF from an existing HTML

2010-05-20 Thread Marco Antonio Filho
Hi everyone, I am having a lot of troubles with this issue the past few days and I would like any suggestions to try to solve this. I want to generate a PDF that has a really big report table from a given HTML (I am not using wicked_pdf plugin because the only thing I want from the HTML is that

[Rails] Parse HTML to text

2010-05-20 Thread ahmy
Hi Im trying to parse a HTML to raw text, is there any plugin or gem for this ? exactly im trying to parse an email response whether it's HTML or Text or both of them. Thank you -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] rails gem error:i have a new rails application with the new controller called test,and i have tried to call the method inside the test controller,it gives me error like below:

2010-05-20 Thread karthi
rubygems/custom_require.rb:31:in `require' script/server:3 /!\ FAILSAFE /!\ Thu May 20 11:15:33 +0530 2010 Status: 500 Internal Server Error no such file to load -- sqlite3 c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_origina l_require'

[Rails] Rails vs Grails

2010-05-20 Thread egervari
Hi, are there any really unbiased comparisons between rails and grails, and to which each framework is better suited for? I'm coming from a java background, but I am not against using a non java solution if it's actually better. I am a little concerned with performance though. The site needs to

Re: [Rails] Rails vs Grails

2010-05-20 Thread Michael Pavling
On 20 May 2010 07:10, egervari ken.egerv...@gmail.com wrote: Hi, are there any really unbiased comparisons between rails and grails, and to which each framework is better suited for? Rails is better suited to people that know Ruby but not Java. Grails is better suited to people that know Java

[Rails] Re: Self Creating edit page?

2010-05-20 Thread Sharagoz
I may be wrong, but I think rails uses the new_record? method to decide whether the form should be posted to the create or the update action when you do something like % form_for(@dealer) do |f| %. Are you sure your transaction is working correctly and that everything has been rolled back? Can you

Re: [Rails] rails gem error:i have a new rails application with the new controller called test,and i have tried to call the method inside the test controller,it gives me error like below:

2010-05-20 Thread Michael Pavling
On 20 May 2010 06:50, karthi karthivis...@gmail.com wrote: rubygems/custom_require.rb:31:in `require'    script/server:3 /!\ FAILSAFE /!\  Thu May 20 11:15:33 +0530 2010  Status: 500 Internal Server Error  no such file to load -- sqlite3 The first line of the error is giving you the most

[Rails] Re: t alias doesn't work

2010-05-20 Thread Frederick Cheung
On May 20, 8:51 am, badnaam asitkmis...@gmail.com wrote: I18n.t works but t alias doesn't. This is rails 2.3.5. In what context ? t is only supposed to work in views/controllers/ helpers - in models you 'll have to write I18n.t Fred Thanks -- You received this message because you are

Re: [Rails] Parse HTML to text

2010-05-20 Thread Amala Singh
There are many ways. One way is Hpricot gem. Check this link: http://stackoverflow.com/questions/1243817/hpricot-get-all-text-from-document require 'hpricot' require 'open-uri' doc = open(http://stackoverflow.com/;) { |f| Hpricot(f) } text = (doc///*/text()) # array of text values puts

Re: [Rails] Generate a PDF from an existing HTML

2010-05-20 Thread Amala Singh
You may need to give a relative path perhaps. On 20 May 2010 10:44, Marco Antonio Filho marcoafi...@gmail.com wrote: Hi everyone, I am having a lot of troubles with this issue the past few days and I would like any suggestions to try to solve this. I want to generate a PDF that has a

[Rails] Re: staying RESTful and triggering actions without saving a

2010-05-20 Thread Marnen Laibow-Koser
frankjmat...@gmail.com wrote: No. It has *nothing* to do with appearance. PUT is for updating an existing resource (generally through a form). and i am updating a resource... i'm not using #update_attributes, but in my controller I am saving. That's an irrelevant implementation detail.

[Rails] Re: Rails vs Grails

2010-05-20 Thread Marnen Laibow-Koser
Michael Pavling wrote: On 20 May 2010 07:10, egervari ken.egerv...@gmail.com wrote: Hi, are there any really unbiased comparisons between rails and grails, and to which each framework is better suited for? Rails is better suited to people that know Ruby but not Java. Grails is better suited

Re: [Rails] Re: Rails vs Grails

2010-05-20 Thread Peter Hickman
On 20 May 2010 12:59, Marnen Laibow-Koser li...@ruby-forum.com wrote: My former boss wrote probably the largest Groovy project in the history of the language. He later switched his business over to being a Rails consultancy. I think it's significant that with all his Groovy experience, he

[Rails] Rake aborted ! while runing the migrations

2010-05-20 Thread Vamsi Krishna
Hi, When i ran the migrations rake db:migrate --trace rake is aborted and i got the following error. i'm unable to find out the solution for this , if any one knows please reply H:\currentrake db:migrate --trace (in H:/current) ** Invoke db:migrate (first_time) ** Invoke environment

[Rails] Re: Rails vs Grails

2010-05-20 Thread egervari
The information I have come across from people who know both frameworks and languages well is that Rails is better designed and easier to work with than Grails. My former boss wrote probably the largest Groovy project in the history of the language.  He later switched his business over to

[Rails] URGENT! can't activate actionpack (= 1.13.6, runtime) for [actionwebservice-1.2.6], already activated actionpack-2.3.5 for [rails-2.3.5] (Gem::LoadError)

2010-05-20 Thread pepe
Hi guys, I have added consumption of a couple of web services to my application and everything seemed to be going well. That is after yesterday, when I was asked to install whatever I had in a test server that runs in production mode (used also for demos) and when I tested the production

[Rails] Re: Rails vs Grails

2010-05-20 Thread egervari
The decision could have been based solely on business grounds, not technical grounds. People have heard of Rails, there is 'brand awareness' for Rails, so you more likely to be able to get clients. Or at least it would be easier convincing them that Rails is what they want rather than

[Rails] Re: Rails vs Grails

2010-05-20 Thread Marnen Laibow-Koser
egervari wrote: purely business grounds Rails is king. So your former bosses decision might not be a reflection as to the technical merits of Grails. When it comes to performance, how is Rails? Like if I were to design a raw Spring/Hibernate app, which I'm not going to... but let's say I

Re: [Rails] Re: Rails vs Grails

2010-05-20 Thread Mohit Sindhwani
On 20/5/2010 8:26 PM, Peter Hickman wrote: Not saying that there aren't technical reasons to reject Grails but on purely business grounds Rails is king. How long has the Rails community waited to hear the second half of that statement! Best Regards, Mohit. 20/5/2010 | 8:54 PM. -- You

Re: [Rails] Re: Rails vs Grails

2010-05-20 Thread Peter Hickman
On 20 May 2010 13:45, egervari ken.egerv...@gmail.com wrote: When it comes to performance, how is Rails? Like if I were to design a raw Spring/Hibernate app, which I'm not going to... but let's say I did. What is the comparative performance with something like that, even though it probably

[Rails] Re: Parse HTML to text

2010-05-20 Thread Marnen Laibow-Koser
Amala Singh wrote: There are many ways. One way is Hpricot gem. That's true, but I think most people are using Nokogiri these days. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] best practices for calling a web service (like geocode)

2010-05-20 Thread chewmanfoo
Guys, I have a Customer class which creates an instance of an Address class, and the user can then go into the show method of the Customer class and associate other addresses with that Customer (sites). As soon as an Address instance is created, I want to call geocoding to get the latitude and

[Rails] Re: nill object error

2010-05-20 Thread Ar Chron
Ravi Dtv wrote: def grouplist @currentgroupid=Group.find_by_group_name(params[:group_name]) @currentgroupfriends=GroupFriend.find_all_by_user_id_and_group_id(current_user.id,@currentgroupid) format.html {redirect_to :back} end What does the log tell you is nil? current_user or

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for [actionwebservice-1.2.6], already activated actionpack-2.3.5 for [rails-2.3.5] (Gem::LoadError)

2010-05-20 Thread Frederick Cheung
On May 20, 1:44 pm, pepe p...@betterrpg.com wrote: Another post mentioned about getting rid of any actionpack gem higher than the one required by actionwebservice but I am afraid that doing so will screw up actionsupport and/or activerecord. Below is the list of gems currently installed. I

[Rails] get data from has_and_belongs_to_many + has_many

2010-05-20 Thread Ale Ds
I have 3 models, A, B and C and the classic 3 relations: 1) A --- has_and_belongs_to_many --- B 2) B has_many C B - c1 - c2 - c3 ... 3) C belong_to B C - a1 Question: How can I get C entries in relationship to an A entry ? in other words, I have a = A.find id and I want C I have

[Rails] Memory release problem

2010-05-20 Thread Manivannanj Jeganathan
In my application, i have Memory leak problem ie query's execution's used memory is not released after executing the query. i have already posted my problem http://www.ruby-forum.com/topic/209794#new http://www.ruby-forum.com/topic/209796#new http://www.ruby-forum.com/topic/209984#new when i use

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for [actionwebservice-1.2.6], already activated actionpack-2.3.5 for [rails-2.3.5] (Gem::LoadError)

2010-05-20 Thread pepe
Thanks Fred, I tried to install the last version from datanoise by running gem install/update actionwebservice but that got me nowhere (still showing actionwebservice 1.2.6). Is that not the install command from datanoise's gem? If datanoise's gem is not the same as the 'regular'

[Rails] Problem with installation of Rails 3

2010-05-20 Thread Siva Kilaru
Help me out guys While installing rails 3 i got the following message :~$ sudo gem install rails --pre Successfully installed rails-3.0.0.beta3 1 gem installed Installing ri documentation for rails-3.0.0.beta3... File not found: lib My gem list :~$ gem list *** LOCAL GEMS *** abstract

Re: [Rails] get data from has_and_belongs_to_many + has_many

2010-05-20 Thread Michael Pavling
On 20 May 2010 15:00, Ale Ds li...@ruby-forum.com wrote: Question: How can I get C entries in relationship to an A entry ? in other words, I have a = A.find id and I want C You need to iterate over a's bs [1] collection, and return the related cs. Then probably only return uniq c records

[Rails] Re: Problem with installation of Rails 3

2010-05-20 Thread Jeff
On May 20, 9:11 am, Siva Kilaru li...@ruby-forum.com wrote: Help me out guys While installing rails 3 i got the following message :~$ sudo gem install rails --pre Successfully installed rails-3.0.0.beta3 1 gem installed Installing ri documentation for rails-3.0.0.beta3... File not

[Rails] Re: Integrating with BIRT Reporting Engine

2010-05-20 Thread Anooj Mr
Jonathan Viney wrote: I looked at this recently but hit a showstopper when dealing with XML data sources in BIRT: http://dev.eclipse.org/newslists/news.eclipse.birt/msg13195.html Any solutions to this? -Jonathan. Has anyone found a solution to this problem yet.. I am working on a

[Rails] Re: Problem with installation of Rails 3

2010-05-20 Thread Siva Kilaru
Jeff Cohen wrote: Pretty sure that's just a documentation error. Looks like your Rails beta3 gem installed fine. Jeff Thanx Jeff I had one more problem. I dont want to use sqlite3 instead want to use Postgresql... Do u have any idea of how to do it.. I think I installed all the

[Rails] Re: Printed/PDF Reports (Text/Tabular/Summary) in Rails

2010-05-20 Thread Anooj Mr
DC... I am also struggling with integration of BIRT into an ROR project that I am working on.. But it seems like there is no or very little documentation or resource online for reference.. Can you please point me in the right direction here.. I would really appreciate any help.. Thanks Anooj

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for [actionwebservice-1.2.6], already activated actionpack-2.3.5 for [rails-2.3.5] (Gem::LoadError)

2010-05-20 Thread Frederick Cheung
On May 20, 3:05 pm, pepe p...@betterrpg.com wrote: Thanks Fred, I tried to install the last version from datanoise by running gem install/update actionwebservice but that got me nowhere (still showing actionwebservice 1.2.6). Is that not the install command from datanoise's gem? If

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for [actionwebservice-1.2.6], already activated actionpack-2.3.5 for [rails-2.3.5] (Gem::LoadError)

2010-05-20 Thread pepe
as i understand it it's just the 'old' actionwebservice updated to still work with recent versions of rails. You might have to install the gem by hand (get the source, build the gem with gem build blah.gemspec and then install the resulting .gem file) I'll have to give it a try. Never built a

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for [actionwebservice-1.2.6], already activated actionpack-2.3.5 for [rails-2.3.5] (Gem::LoadError)

2010-05-20 Thread Frederick Cheung
On May 20, 3:51 pm, pepe p...@betterrpg.com wrote: as i understand it it's just the 'old' actionwebservice updated to still work with recent versions of rails. You might have to install the gem by hand (get the source, build the gem with gem build blah.gemspec and then install the

[Rails] local stack dump capability would be nice ..

2010-05-20 Thread wbsurf...@yahoo.com
If there was a way to limit parts of a ruby stack trace to just my code rather than the whole rails library and gems that would be an interesting feature .. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] CruiseControl.rb Ruby 1.9.1 compatibility?

2010-05-20 Thread Kristof Redei
Hi all, I'm trying to add a CruiseControl.rb 1.4.0 project under Ruby 1.9.1p378 and getting an error that seems to indicate the vendored version of Rails isn't compatible with 1.9 (using the old when syntax with a colon). Stacktrace below. I'm a bit confused though as I thought this version of

[Rails] Re: URGENT! can't activate actionpack (= 1.13.6, runtime) for [actionwebservice-1.2.6], already activated actionpack-2.3.5 for [rails-2.3.5] (Gem::LoadError)

2010-05-20 Thread pepe
Thanks again Fred. On May 20, 11:09 am, Frederick Cheung frederick.che...@gmail.com wrote: On May 20, 3:51 pm, pepe p...@betterrpg.com wrote: as i understand it it's just the 'old' actionwebservice updated to still work with recent versions of rails. You might have to install the gem

[Rails] Re: nill object error

2010-05-20 Thread Ravi Dtv
Ar Chron wrote: Ravi Dtv wrote: def grouplist @currentgroupid=Group.find_by_group_name(params[:group_name]) @currentgroupfriends=GroupFriend.find_all_by_user_id_and_group_id(current_user.id,@currentgroupid) format.html {redirect_to :back} end What does the log tell you is

[Rails] spree commerce (or other open source ruby shopping carts)

2010-05-20 Thread mgerstenbl...@gmail.com
Hi All, Has anyone used spree commerce as an e-commerce system? Is it production ready? Easy to customize? Are there other ruby-based platforms out there? I'm currently looking at options for an e-commerce system for a venture my company is starting and we're deciding whether to use existing

[Rails] Re: Postgres + Rail 3.0

2010-05-20 Thread Ravi Dtv
Siva Kilaru wrote: Hi guys, I am really new to these things like ROR and Postgres. When I was installing ROR 3.0 it says Successfully installed rails 3.0.0 beta 1 gem installed Installing ri document for rails 3.0.0 beta File not Found: lib This is the one which I really dont

Re: [Rails] Rails vs Grails

2010-05-20 Thread Björn Wilmsmann
Hi, On 20 May 2010 08:10, egervari ken.egerv...@gmail.com wrote: Hi, are there any really unbiased comparisons between rails and grails, and to which each framework is better suited for? Having worked with both extensively, though a lot more with Grails as of lately, I dare say that it all

[Rails] Re: local stack dump capability would be nice ..

2010-05-20 Thread Frederick Cheung
On May 20, 4:13 pm, wbsurf...@yahoo.com wbsurf...@gmail.com wrote:  If there was a way to limit parts of a ruby stack trace to just my code rather than the whole rails library and gems that would be an interesting feature .. like

Re: [Rails] Re: nill object error

2010-05-20 Thread Colin Law
On 20 May 2010 16:35, Ravi Dtv li...@ruby-forum.com wrote: Ar Chron wrote: Ravi Dtv wrote:  def grouplist @currentgroupid=Group.find_by_group_name(params[:group_name]) @currentgroupfriends=GroupFriend.find_all_by_user_id_and_group_id(current_user.id,@currentgroupid)  format.html

Re: [Rails] spree commerce (or other open source ruby shopping carts)

2010-05-20 Thread Andrew Kuklewicz
Haven't used spree. We use active merchant + paypal, but it is not a very big part of our site - it works and we leave it alone. Not sure what you are doing, but shopify might be an option as well. Cheers, Andrew Kuklewicz On Thu, May 20, 2010 at 11:38 AM, mgerstenbl...@gmail.com

[Rails] Re: get data from has_and_belongs_to_many + has_many

2010-05-20 Thread Sharagoz
On May 20, 4:13 pm, Michael Pavling pavl...@gmail.com wrote: You need to iterate over a's bs [1] collection, and return the related cs. I don't think that is necessary. It should be possible to get the data in a single sql query. @cs = C.all(:joins = {:b = :as}, :conditions = {'as.id = 1'})

[Rails] Re: Re: nill object error

2010-05-20 Thread Ravi Dtv
Colin Law wrote: On 20 May 2010 16:35, Ravi Dtv li...@ruby-forum.com wrote: �format.xml 2010-05-17 14:00:13, user_id: 9, group_name: testinggroup �from (irb):43 That is because @friendsingroup is an array because you have used find_all_by_... The clue is in the error message. It says

[Rails] Re: Facebook, authlogic, and OAuth2

2010-05-20 Thread vov
I recall the author saying he made the new gem as opposed to doing changes in the original oauth gem because oauth2 is a different beast. I tried to use the oauth2 gem to log-in to twitter, and I confirm - obviously- it doesn't work. I'm looking forward Twitter to implement oauth 2. On May 19,

[Rails] Re: get data from has_and_belongs_to_many + has_many

2010-05-20 Thread Ale Ds
Michael Pavling wrote: You need to iterate over a's bs [1] collection, and return the related cs. Then probably only return uniq c records (a given c might be linked to more than one b...) This should give you what you want: cs=[] a.bs.each do |b| cs += b.cs end cs.uniq!

[Rails] Re: get data from has_and_belongs_to_many + has_many

2010-05-20 Thread Ale Ds
Sharagoz wrote: I don't think that is necessary. It should be possible to get the data in a single sql query. @cs = C.all(:joins = {:b = :as}, :conditions = {'as.id = 1'}) That 's what I was looking for, I was wrong because I began research from the wrong side (A instead of C) Thank you

[Rails] Basic question on RoR, the Web, and Browsers

2010-05-20 Thread Ralph Shnelvar
Let's say Firefox has opened two tabs each with Google's home screen on it. Now the user enters some text into the form and clicks Google Search. If Google were implemented in Rails, some controller would see the request, process it, hand off to a view, and the view would render it. Basic

[Rails] Re: Basic question on RoR, the Web, and Browsers

2010-05-20 Thread Frederick Cheung
On May 20, 5:45 pm, Ralph Shnelvar li...@ruby-forum.com wrote: If Google were implemented in Rails, some controller would see the request, process it, hand off to a view, and the view would render it. Basic question:  When the view is rendered and sent back to the client browser, how does

[Rails] Re: Basic question on RoR, the Web, and Browsers

2010-05-20 Thread Ralph Shnelvar
First of all, thank you about the info about the tcp connection. Can you point me at any additional information about that, please? One way of doing things might be for there to be a games table, and pass the id of the game either in the url or stash it in the session (session not so hot if

[Rails] Re: local stack dump capability would be nice ..

2010-05-20 Thread wbsurf...@yahoo.com
hey, thanks On May 20, 11:57 am, Frederick Cheung frederick.che...@gmail.com wrote: On May 20, 4:13 pm, wbsurf...@yahoo.com wbsurf...@gmail.com wrote:  If there was a way to limit parts of a ruby stack trace to just my code rather than the whole rails library and gems that would be an

Re: [Rails] Re: Problem with installation of Rails 3

2010-05-20 Thread conradwt
On Thu, May 20, 2010 at 7:26 AM, Siva Kilaru li...@ruby-forum.com wrote: Jeff Cohen wrote: Pretty sure that's just a documentation error. Looks like your Rails beta3 gem installed fine. Jeff Thanx Jeff I had one more problem. I dont want to use sqlite3 instead want to use

[Rails] Ruby on Rails Developer - 6 month contract in Portland, OR *some travel involved

2010-05-20 Thread Patrick - PDX Recruiter
Immemdiate need for a RoR Developer, details below. Looking for person located in Oregon (ideally) and will require some travel to Washington D.C then rest will be remote/work from home. if you are interested, send a resume to; patri...@infogroupnw.com Develop and maintain Ruby on Rails

[Rails] Re: Basic question on RoR, the Web, and Browsers

2010-05-20 Thread Frederick Cheung
On May 20, 6:23 pm, Ralph Shnelvar li...@ruby-forum.com wrote: First of all, thank you about the info about the tcp connection.  Can you point me at any additional information about that, please? Not that I can think of - it's just how people write network software One way of doing

[Rails] using searchlogic to retrieve ids, then rebuild object?

2010-05-20 Thread dan
im giving searchlogic a try to combine named scopes easily only issue i have is it doesnt return distinct results ive worked around this with a named scope of grouped which selects only the id and groups by the id once ive got the ids, how can i quickly rebuild the object...find(:id=[...@ids]...or

[Rails] Rendering a partial on a two column page

2010-05-20 Thread Matt Royer
Hi, I attached a page for clarity of what I want. I have a two column page (index.html.erb). On the left hand side, I have the order ID and order NAME displayed. There is a SHOW link next to each entry. I want to be able to click on the SHOW link and have it display the full order information

[Rails] Re: Looking for Easy Rails hosting

2010-05-20 Thread Deon Silva
I would recommend webappcabaret.com. They have RAILS already setup to run on Mongrel, Passenger as well as Glassfish. Price start at $10 per month. And you are still able to use cPanel or Plesk for general website management. Mohammed Alenazi wrote: Hi I have registered for some paid rails

Re: [Rails] using searchlogic to retrieve ids, then rebuild object?

2010-05-20 Thread Conrad Taylor
On Thu, May 20, 2010 at 11:38 AM, dan mr.dan.ma...@gmail.com wrote: im giving searchlogic a try to combine named scopes easily only issue i have is it doesnt return distinct results ive worked around this with a named scope of grouped which selects only the id and groups by the id once ive

[Rails] Re: spree commerce (or other open source ruby shopping carts)

2010-05-20 Thread Yiannis
Spree has nice architecture and logic with extensions, but currently it has many bugs. It is in version 0.10... I was impressed by his architecture but dissapointed by the bugs :(. I started to fix them, it wasn't difficult to fix what bug I found but I was thinking if it has so many bugs now that

[Rails] inline RJS ActionControllerException: stack level too deep

2010-05-20 Thread Lille
Hi, I get a ActionControllerException: stack level too deep when I attempt inline RJS like this: %=observe_field(loan_term, :function = update_page { |page| page[:max_term_in_yrs].insert_html(page[:loan_term].value/12); })% What am I missing -- where's the wind? Thanks, Lille -- You

[Rails] Re: Problem with installation of Rails 3

2010-05-20 Thread Jeff
On May 20, 9:26 am, Siva Kilaru li...@ruby-forum.com wrote: I had one more problem. I dont want to use sqlite3 instead want to use Postgresql... Do u have any idea of how to do it.. I think I installed all the required gems I want to modify the database.yml file which I did but even cant

[Rails] Active Scaffold Filtered Export

2010-05-20 Thread May Pie
I'm new to Rails, and I'm not sure how I can pass the results of a filtered list to my export. I'm filtering using several user-selected criteria run through a conditions_for_collection. Then I'm using a config.actions_link.add to link to an Export function. How can I export just my filtered

Re: [Rails] Re: Re: nill object error

2010-05-20 Thread Colin Law
On 20 May 2010 17:19, Ravi Dtv li...@ruby-forum.com wrote: ... When debugging i find currentgroupid is nill. How can I solve this. Possible solutions to pass values form partial to controller.        % @groups.each do |g| %   p h5     %= link_to_remote g.group_name, :update = abc, :url = {

Re: [Rails] Install eventmachine on Debian Lenny

2010-05-20 Thread Jeffrey L. Taylor
Do you have libc6-dev installed? Jeffrey Quoting Juan José Vidal juanj...@um.es: Hi, I can't install eventmachine on Debian Lenny. ruby-dev and build-essential are installed. Where's the problem? [snip] -DHAVE_RB_TIME_NEW -DOS_UNIX -DWITHOUT_SSL -I/include/include-fPIC

[Rails] Rails 3 Routing problem

2010-05-20 Thread Adam Leonard
I have moved some of my development on to my server. http://ls1.bigseapreview.com . The homepage works just fine, but any other route isn't correctly working. If I attempt to go to http://ls1.bigseapreview.com/about, it throws a 404, but this all works locally. I'm using Phusion Passenger, if

Re: [Rails] Rails 3 Routing problem

2010-05-20 Thread Conrad Taylor
On Thu, May 20, 2010 at 12:57 PM, Adam Leonard li...@ruby-forum.com wrote: I have moved some of my development on to my server. http://ls1.bigseapreview.com . The homepage works just fine, but any other route isn't correctly working. If I attempt to go to http://ls1.bigseapreview.com/about,

[Rails] url_for escape=false, builder xml template?

2010-05-20 Thread Jonathan Rochkind
The Rails documentation says When called from a view, url_for returns an HTML escaped url. If you need an unescaped url, pass :escape = false in the options. But I can't seem to get this to work, :escape = true has no effect at all. Is this because I'm in an .atom.builder view, not an .html.erb

Re: [Rails] Install eventmachine on Debian Lenny

2010-05-20 Thread Juan JosŽé Vidal Agust’ín
Yes # dpkg -l | grep libc6 ii libc6 2.7-18lenny2 GNU C Library: Shared libraries ii libc6-dev 2.7-18lenny2 GNU C Library: Development Libraries and Hea ii libc6-i386

[Rails] Re: Rails 3 Routing problem

2010-05-20 Thread Adam Leonard
Conrad Taylor wrote: On Thu, May 20, 2010 at 12:57 PM, Adam Leonard li...@ruby-forum.com wrote: Please post the routes file or the relevant sections of it to better assist you? -Conrad http://privatepaste.com/64e55f8503 is my full routes file. -- Posted via

[Rails] Re: Rendering a partial on a two column page

2010-05-20 Thread Matt Royer
Okay, I made a really dumb mistake and put: % javascript_include_tag 'defaults' % Instead of: % javascript_include_tag :defaults % So that fixed my rendering. At least I'm getting information over to the other column now. But it's an error, because it can't find the ID. I attached the

[Rails] Re: Basic question on RoR, the Web, and Browsers

2010-05-20 Thread Marnen Laibow-Koser
Frederick Cheung wrote: On May 20, 6:23�pm, Ralph Shnelvar li...@ruby-forum.com wrote: First of all, thank you about the info about the tcp connection. �Can you point me at any additional information about that, please? Not that I can think of - it's just how people write network software

[Rails] Re: Problem with installation of Rails 3

2010-05-20 Thread Siva Kilaru
Jeff Cohen wrote: database.yml: development: adapter: postgresql host: localhost # or your server name database: my_app_development username: me password: password and similarly change the test and production sections too. Once you've done that, you can use rake

Re: [Rails] Re: Rendering a partial on a two column page

2010-05-20 Thread Rob Biedenharn
On May 20, 2010, at 5:01 PM, Matt Royer wrote: Okay, I made a really dumb mistake and put: % javascript_include_tag 'defaults' % Instead of: % javascript_include_tag :defaults % So that fixed my rendering. At least I'm getting information over to the other column now. But it's an error,

[Rails] attachment_fu slows down update

2010-05-20 Thread Sam Kong
Hi, I use attachment_fu and it slows down update. [Models] product has many pictures. [Update] product.update_attributes(pictures_attributes={ 6={_delete=0, color_id=3, id=2953}, 11={_delete=0, color_id=9, id=2921}, 22={_delete=0, color_id=24, id=2977}, 7={_delete=0, color_id=4, id=2965},

Re: [Rails] Install eventmachine on Debian Lenny

2010-05-20 Thread Jeffrey L. Taylor
Odd, What about ls /usr/include/sys or if you have the find-utils locate cdefs.h Jeffrey Quoting Juan Jos?é Vidal Agust?ín juanj...@um.es: Yes # dpkg -l | grep libc6 ii libc6 2.7-18lenny2 GNU C Library: Shared libraries ii libc6-dev

[Rails] Re: using searchlogic to retrieve ids, then rebuild object?

2010-05-20 Thread dan
#model location.rb named_scope :grouped, :select = 'locations.id', :group = 'locations.id' has_many :criterias, :through = :locations_criterias #controller locations_controller.rb # i havent even gotten to the paginate part yet @locations = Location.criterias_name_or_name_like(@query).grouped

[Rails] Re: Re: Rendering a partial on a two column page

2010-05-20 Thread Matt Royer
Rob Biedenharn wrote: Hi Rob, Thanks for the quick response! I'm sorry, I'm still relatively new at this Rails stuff. I have gone through a couple of books, but it's hard to tie it all together. :) When you put the following: :id = order.id Where should I enter that? Within the

[Rails] List of radio buttons

2010-05-20 Thread Smok
I need to create in RoR 2.3.5 a list of questions ( the number of questions will be changing). The answers will be near to each of the these questions in radiobuttons (let's say 3 radios near each of thequestions). After having compleated all of these questions I would like to read all the answers

Re: [Rails] Re: Activerecord association design advice

2010-05-20 Thread Ali Akhtarzada
Heh, not the matrix. What I am programming though is a ratable ontology, so the initial email with Concept, Entity and Dimension is the real code and I'm afraid flexibility is one of my main concerns because the number of vehicles, models and dimensions are completely unknown. So, single table

[Rails] Re: Basic question on RoR, the Web, and Browsers

2010-05-20 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote: Frederick Cheung wrote: On May 20, 6:23�pm, Ralph Shnelvar li...@ruby-forum.com wrote: First of all, thank you about the info about the tcp connection. �Can you point me at any additional information about that, please? Not that I can think of - it's just how

[Rails] Check URL

2010-05-20 Thread David Zhu
Is there a way to do an if/else case to check the URL? for example- % if URL = http://www.google.com; % Hi, your URL's GOOGLE % else % You URL isn't GOOGLE % end % Of course that method is just a mockup, does anyone know the real syntax? Thanks -- You received this message because you are

Re: [Rails] Re: Re: Rendering a partial on a two column page

2010-05-20 Thread Rob Biedenharn
On May 20, 2010, at 5:45 PM, Matt Royer wrote: Rob Biedenharn wrote: Hi Rob, Thanks for the quick response! I'm sorry, I'm still relatively new at this Rails stuff. I have gone through a couple of books, but it's hard to tie it all together. :) When you put the following: :id =

Re: [Rails] Check URL

2010-05-20 Thread Philip Hallstrom
On May 20, 2010, at 3:05 PM, David Zhu wrote: Is there a way to do an if/else case to check the URL? for example- % if URL = http://www.google.com; % Hi, your URL's GOOGLE % else % You URL isn't GOOGLE % end % Of course that method is just a mockup, does anyone know the real

[Rails] Re: Check URL

2010-05-20 Thread David Zhu
On May 20, 6:12 pm, Philip Hallstrom phi...@pjkh.com wrote: On May 20, 2010, at 3:05 PM, David Zhu wrote: Is there a way to do an if/else case to check the URL? for example- % if URL = http://www.google.com; % Hi, your URL's GOOGLE % else % You URL isn't GOOGLE % end % Of

Re: [Rails] List of radio buttons

2010-05-20 Thread Hassan Schroeder
On Thu, May 20, 2010 at 2:46 PM, Smok mariusz_waszc...@tlen.pl wrote: I need to create in RoR 2.3.5 a list of questions ( the number of questions will be changing). The answers will be near to each of the these questions in radiobuttons (let's say 3 radios near each of thequestions). After

[Rails] Rails, Thrift, and Phusion Passenger.

2010-05-20 Thread Adam Ms.
I'm about to start a project that uses Rails, Thrift, and Phusion Passenger. The Rails instances will be Thrift clients. If anyone has any pointers to tips or tricks for maximizing Thrift performance I'd be grateful. In particular it looks like I will need to create a Thrift client pool that

[Rails] Re: Re: Re: nill object error

2010-05-20 Thread Ravi Dtv
Colin Law wrote: On 20 May 2010 17:19, Ravi Dtv li...@ruby-forum.com wrote: �users , :action = showfriendslist } % � %= hidden_field_tag :group_name �% /h5 /p % end % I can see my groupname displaying in my page, but when I click on my groupname link, Im not able to pass �groupname to my

[Rails] Re: Re: Re: nill object error

2010-05-20 Thread Ravi Dtv
I can see my groupname displaying in my page, but when I click on my groupname link, Im not able to pass �groupname to my controller. Using a hidden field does not work as you are not in a form. That is how to do it if you were submitting from a form. Instead just include the name in

[Rails] Re: Basic question on RoR, the Web, and Browsers

2010-05-20 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote: Marnen Laibow-Koser wrote: Frederick Cheung wrote: On May 20, 6:23�pm, Ralph Shnelvar li...@ruby-forum.com wrote: First of all, thank you about the info about the tcp connection. �Can you point me at any additional information about that, please? Not that I can think

[Rails] Re: Printed/PDF Reports (Text/Tabular/Summary) in Rails

2010-05-20 Thread Marnen Laibow-Koser
Jeremy Cowgar wrote: [...] Any suggestions? I have used FOP in the past and there is no way it's powerful enough for some of the things we do. In some synarios, we really had to push the limits of ReportLab (and sometimes confined by them). I doubt extremely that FOP isn't powerful enough.

  1   2   >