[Rails] Re: any use of flash causing "stack level too deep"

2009-12-12 Thread pharrington
On Dec 13, 12:23 am, Bob Smith wrote: > Is there any way to clear what's in there? Also, http://railsapi.com/ is a *fantastic* tool to search the Rails documentation. Just search for flash and you'll find that method. -- You received this message because you are subscribed to the Google Group

[Rails] Re: any use of flash causing "stack level too deep"

2009-12-12 Thread pharrington
On Dec 13, 12:23 am, Bob Smith wrote: > Is there any way to clear what's in there? > > This happens any time flash[] is in my code. It can be setting or > reading a value. > > I've tried commenting out all uses of flash in my code to get a few > different pages to load, thinking this would clear t

[Rails] any use of flash causing "stack level too deep"

2009-12-12 Thread Bob Smith
Is there any way to clear what's in there? This happens any time flash[] is in my code. It can be setting or reading a value. I've tried commenting out all uses of flash in my code to get a few different pages to load, thinking this would clear the values, but no luck. If I get into the debugger

Re: [Rails] Re: How to make PUT with html forms?

2009-12-12 Thread straightfl...@gmail.com
there is a bug in 2.3.4 that breaks PUTs in Ajax calls, this could be your issue https://rails.lighthouseapp.com/projects/8994/tickets/2448-rails-23-json-put-request-routing-is-broken On Sat, Dec 12, 2009 at 10:57 PM, Jeffrey L. Taylor wrote: > Try ':method => :put' (without the quotes).  Rails

Re: [Rails] Re: How to make PUT with html forms?

2009-12-12 Thread Jeffrey L. Taylor
Try ':method => :put' (without the quotes). Rails is not always consistent. Some places either strings or symbols work, other places they don't. HTH, Jeffrey Quoting Jonhy Pear : > I made some researche and found in Ruby on Rais guides that I'm doing the > correct thing... but I'm not getting

[Rails] which is the most popular Ruby on Rails AUTHORIZATION gem/plugin at the moment???

2009-12-12 Thread greghauptmann
Hi, which is the most popular Ruby on Rails AUTHORIZATION gem/plugin at the moment??? thanks PS by the way I'm using AuthLogic for authentication -- 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 rubyon

[Rails] how can I download full Rails API doco in the format it is at http://api.rubyonrails.org/ ???

2009-12-12 Thread greghauptmann
Hi, How can I download full Rails API doco in the format it is at http://api.rubyonrails.org/ ??? That is at this URL it seems they've brought all the RDOC for each of the rails areas into one consolidated area. I'm looking for a way to get this off-line? (I know I can go "gem server" and brows

[Rails] Looking for insight into the Rails Way of handling views

2009-12-12 Thread rails.impaired
I've been developing rails apps for a couple of years now and I must say that I think it is a great way to build web apps. Rails is constantly evolving as are the lines of thinking / features / practices / conventions, etc. As Rails evolves, it is important to decide what to adopt. Some things I

[Rails] Integrating facebook connect

2009-12-12 Thread Jonhy Pear
Hi, I've finished an iteration and the code that allows users to register and manage their login information in a RoR app is finished. Now I want to use facebook Connect to allow users connect to my app with facebook account. I'm planning to use the Facebooker library. If you have better alternat

[Rails] Re: How to make PUT with html forms?

2009-12-12 Thread Jonhy Pear
I made some researche and found in Ruby on Rais guides that I'm doing the correct thing... but I'm not getting the correct results. I know I'm missing something... what is? http://guides.rubyonrails.org/form_helpers.html#how-do-forms-with-put-or-delete-methods-work

Re: [Rails] Finding non-empty has_many associations with a named_scope

2009-12-12 Thread Ryan Waldron
Well, it kind of does the wrong join: >> c = Customer.all.reject{|j| j.jobs.empty?} [...] >> c.size => 2125 >> c = Customer.with_jobs Customer Load (165.5ms) SELECT SQL_NO_CACHE `customers`.* FROM `customers` INNER JOIN `jobs` ON jobs.customer_id = customers.id WHERE (jobs.customer_id IS NOT

[Rails] Single Table Inheritance in Rails: Sample App Available

2009-12-12 Thread Joe McGlynn
I'm using Rails STI on a project, so I extracted the basics and wrote up some basics on single table inheritance and how it's used in Rails. Two blog posts, first is here: http://joemcglynn.wordpress.com/2009/12/11/rails-sti-part-1/ Second is here: http://joemcglynn.wordpress.com/2009/12/12/rails

Re: [Rails] Finding non-empty has_many associations with a named_scope

2009-12-12 Thread Leonardo Mateo
On Sat, Dec 12, 2009 at 7:40 PM, Ryan Waldron wrote: > If I have these classes: > > class Customer < ActiveRecord::Base >   has_many :jobs > ... > end > > class Job < ActiveRecord::Base >   belongs_to :customer > ... > end > > can I construct a named scope that returns the equivalent collection (b

[Rails] Finding non-empty has_many associations with a named_scope

2009-12-12 Thread Ryan Waldron
If I have these classes: class Customer < ActiveRecord::Base has_many :jobs ... end class Job < ActiveRecord::Base belongs_to :customer ... end can I construct a named scope that returns the equivalent collection (but hopefully more efficient) to this: customers_with_jobs = Customer.all.rej

[Rails] Re: Issue with multiple models on one form

2009-12-12 Thread SousChef
Or as a more general question, I reviewed the Railscast mentioned above & Ryan Bates says that the Railscast shows a way to do multiple models in one form by keeping the code tucked in the models and not the controllers. Since the Railscast was done in 2007, has a preferred method of doing multipl

[Rails] Re: Merb and Rails merge?

2009-12-12 Thread MarcRic
The big question is: how they will do it? Rails 3.0 – LIVE, released! http://marcricblog.blogspot.com/2008/12/rails-30-live-released.html On Dec 10, 12:55 am, Esdras Mayrink wrote: > Yup, they're merging. It is a work in progress, will be released soon > as Rails 3. (http://www.youtube.com/wat

[Rails] Re: Merb and Rails merge?

2009-12-12 Thread MarcRic
Is Merb Dead? http://marcricblog.blogspot.com/2008/12/merb-is-dead.html On Dec 11, 1:05 am, matzero wrote: > Will Merb continue to exists/evolve as a separate framework (after the > merge)? > > M> > > On Dec 9, 7:55 pm, Esdras Mayrink wrote: > > > Yup, they're merging. It is a work in progress

[Rails] Re: Issue with multiple models on one form

2009-12-12 Thread SousChef
Hi Andrei, Thanks for the quick feedback. I changed all prepsteps to prep_steps, but now I'm getting an uninitialized constant error in my Recipe controller for the following line: 3.times { @recipe.prep_steps.build } BROWSER DISPLAY: NameError in RecipesController#new uninitialized con

[Rails] How to make PUT with html forms?

2009-12-12 Thread Jonhy Pear
Hi, I'm trying to emulate a post from a HTML form. I've the following code in erb: Alterar Password <% form_tag :action=>"reset_password", :method=>"put" do%> <%=label_tag :password, "Nova password" %> <%=password_field_tag :password, @password %> <%=label_tag :password_confirmat

Re: [Rails] Printserver / User-Customizable Template-System / OpenOffice

2009-12-12 Thread Johan De Klerk
Rather use C# and save yourself a lot of headaches... not that Ruby cant do it... just think about the best tool for the job. On Sat, Dec 12, 2009 at 12:03 PM, Jan Kechel wrote: > Hi everybody, > > I'm writing mostly company internal software and I am happily using > rails for this. > This time

[Rails] Looking for freelance work

2009-12-12 Thread Bolo
Hello Guys, My name is Bolo Michelin. I am looking for some development work in Rails ( sure !) and Flash/Flex/Air.I have experience of 3.5 years with Rails and 8 years with Flash. Im in a dire need of money, so I wont accept any work without compensation. Pls get in touch if you require any wor

[Rails] Re: dynamic :conditions for activerecord associations?

2009-12-12 Thread Matt Jones
I suspected that adding with << wouldn't work; does using the build or create method work? --Matt Jones On Dec 11, 7:26 am, Jarmo Pertman wrote: > Hello. > > Thank you for your suggestion. > > I tried it and it worked for finding, but adding doesn't work > unfortunately. > > Jarmo > > On Dec 9,

Re: [Rails] how to print out content of stylesheets in

2009-12-12 Thread klaus
For normal stylesheet link tags works fine in facebook. In our production environment this is no problem. Also it wasn't a problem for a long time from my development-system. But when i started to include kontagent the whole thing slows really down. Thanks for your approach - I hoped that there is

RE: [Rails] How to scrape a page without knowing its html structure

2009-12-12 Thread Joe McGlynn
I think you'll find you need to know _something_ about the page layout. If there are a finite number of places you need to scrape from you could do this pretty simply. Assume you had a css selector to find the desired content in each URL of interest, and it was stored in an active record (ish) mo

Re: [Rails] How to scrape a page without knowing its html structure

2009-12-12 Thread Hassan Schroeder
On Sat, Dec 12, 2009 at 2:56 AM, kalyan wrote: > I'm doing one module in my site, there I need to import user blog into > my site. I can use RSS feeds to read the blog information but using > RSS feeds I'm not getting entire information. So, I need to scrape the > user blog page. How to scrape a

Re: [Rails] how to print out content of stylesheets in

2009-12-12 Thread Philip Hallstrom
> I'm developing facebook apps with ruby on rails. My connection is > really > slow. The stylesheets do not load mosts of the time. > So i want to print out the content of my .css-files in Tags. > Is this > possibe with some parameter to the stylesheet_link_tag or an other > tag? My underst

[Rails] How to scrape a page without knowing its html structure

2009-12-12 Thread kalyan
Hi, I'm doing one module in my site, there I need to import user blog into my site. I can use RSS feeds to read the blog information but using RSS feeds I'm not getting entire information. So, I need to scrape the user blog page. How to scrape a pages without knowing its html structure of a page?

[Rails] how to print out content of stylesheets in

2009-12-12 Thread klaus
Hi! I'm developing facebook apps with ruby on rails. My connection is really slow. The stylesheets do not load mosts of the time. So i want to print out the content of my .css-files in

[Rails] Printserver / User-Customizable Template-System / OpenOffice

2009-12-12 Thread Jan Kechel
Hi everybody, I'm writing mostly company internal software and I am happily using rails for this. This time I need a system that enables the users to modify printable Documents themselves. The old system (over 10 years now, written with Access 97 ;) ) used Word for this and Access to call Word and

Re: [Rails] Privacy improvements

2009-12-12 Thread Hassan Schroeder
On Sat, Dec 12, 2009 at 8:18 AM, RubyonRails_newbie wrote: > To help keep privacy issues to a minimum on my app, I want to be able > to hide the personal info about a user, until friendship between 2 > users is accepted. > However - once friendship is requested, the 'requestor' can view the > re

[Rails] View change on db field change

2009-12-12 Thread RVince
I have an issue whereby, say I have a button in a view..that shows one way if a boolean field in a db is true, and another way when it is false. When the value of that field in the db changes, I want the button;s state in the view to change as well. How would you guys recommend I do this? Thank

[Rails] Privacy improvements

2009-12-12 Thread RubyonRails_newbie
Hi there, To help keep privacy issues to a minimum on my app, I want to be able to hide the personal info about a user, until friendship between 2 users is accepted. I've added some logic that hides the profile (only visible = Profile pic and Add user as a buddy).. However - once friendship is r

Re: [Rails] Why do so many Ruby/Rails developers use Macs?

2009-12-12 Thread Sergio Eurico
Jim, maybe this video http://www.youtube.com/watch?v=bTM19XLnzPU can explain ;) regards. 2009/12/4 Jim Knowlton > I am a QA engineer who works in Ruby quite a bit, and I've never been > able to figure out...why is there a disproportionately large > contingent of Mac users among Ruby develope

[Rails] Re: how to build a website using ruby on rails

2009-12-12 Thread analogue40
I started with Sitepoint's SImply Rails 2, the main tutorial is a Digg style application. I think this is a great start, but you will need other books. The Pragmattic Programmers: Agile Web Developmnet with Rails is decent and the reference section at the back is well worth it. You also need to g

[Rails] Re: redirect without changing url

2009-12-12 Thread pankaj
thanks for your replies, I want to execute the new action as well as render the corresponding view, without changing the url. It is a case of dynamic routing. Following is the scenario: Every user can have their profile on the website, whose url is www.xyz.com/profileid Additionally there would b