[Rails] create a table per user

2009-03-27 Thread Silviu Miki
not sure what to look at... how would i go about creating tables within the application? i have my users and say, for each one i want to create another table(s) when they register, that would be customized to them and accessible only by them? miki -- Posted via http://www.ruby-forum.com/.

[Rails] Invalid Authenticity Token?

2009-03-27 Thread Richie
Hi guys, Before I explain anything here's my setup: Mac OS X Ruby 1.8.7 from source, RubyGems, Rails 2.3.2, MySQL from source, the ruby mysql adapter gem and mongrel. Firefox 3.07 I'm new to rails and happily understanding everything as I follow through the pragmatic programmers depot

[Rails] adding automatic conditions to find method

2009-03-27 Thread Tam Kbe
Hello, Is there a way to add automatic condition to all active record find methods? I have an attribute in all my tables something like effective_end_date so that I don't delete records but I keep them by setting effective_end_date so I want to put condition is all my find queries

[Rails] Re: Invalid Authenticity Token?

2009-03-27 Thread Jan
Hi, I doubt this is related to a known bug of latest releases, check it here: https://rails.lighthouseapp.com/projects/8994/tickets/2200-session-support-broken I got the same invalid token error as you described, and everything works well again after I downgrade to 2.3.0 - Jan * Richie

[Rails] New TurnKey appliance for Ruby on Rails 2.3.2

2009-03-27 Thread Liraz
TurnKey Linux has released a new Ruby on Rails Appliance. The new appliance features an upgrade to Rails 2.3.2, upgraded Gems components, an important bug fix and significant security enhancements (regeneration of database password on installation):

[Rails] Re: adding automatic conditions to find method

2009-03-27 Thread ruby...@ymail.com
On 27 Mar., 07:20, Tam Kbe rails-mailing-l...@andreas-s.net wrote: Hello, Is there a way to add automatic condition to all active record find methods? I have an attribute in all my tables something like effective_end_date so that I don't delete records but I keep them by setting

[Rails] Re: create a table per user

2009-03-27 Thread ruby...@ymail.com
On 27 Mar., 07:01, Silviu Miki rails-mailing-l...@andreas-s.net wrote: not sure what to look at... how would i go about creating tables within the application? i have my users  and say, for each one i want to create another table(s) when they register, that would be customized to them and

[Rails] Re: Rails 2.3.2 server restart does not appear to clear fragment cache

2009-03-27 Thread Conrad Taylor
On Thu, Mar 26, 2009 at 6:55 PM, Sudhir sud...@gmail.com wrote: After upgrading to Rails 2.3.2 I am now experimenting with Rails caching. I have cache enabled for one action in a few controllers. This seems to work until I restart the server. After restart, I get Invalid Authenticity token

[Rails] Re: Different page caching folder for different domains

2009-03-27 Thread Conrad Taylor
On Tue, Mar 24, 2009 at 2:07 PM, Fernando Perez rails-mailing-l...@andreas-s.net wrote: Hi, I created a multi-domain application, and I wanted to add page caching, how can I tell Rails that it should save each cached page under a subfolder such as public/www.mysite1.com/ and

[Rails] Database Migration error

2009-03-27 Thread Doel Sengupta
This is my first post to the forum, when I try to run a migration that has a t.column, I get this: rake aborted! undefined method `column' for #ActiveRecord::ConnectionAdapters::TableDefinition:0x487c194 -- Posted via http://www.ruby-forum.com/.

[Rails] Adding a css stylesheet to a plugin

2009-03-27 Thread Davide Benini
Hello folks, I am creating a simple RoR plugin, mostly to teach myself the art of plugin-coding. The plugin is mostly a helper plugin, generating HTML code. Now I would like to include a CSS stylesheet ; the idea is to supply a my_plugin_css helper to print a link to the css stylesheet in the

[Rails] get text compatibile con la nuova versione!!!

2009-03-27 Thread Gino Panino
GetText Package 2.0.0 è finalmente compatibile con Rails 2.3.2 (la versione rails-2.3.1 e precedenti non funzionano con gettext-2.0.0). http://www.newsvillage.net/dev/58-ruby/83-ruby-on-rails-prepara-lattacco-al-web-20.html -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Invalid Authenticity Token?

2009-03-27 Thread Richie
Had a read through that but couldn't find anything about what's happening here, thanks for posting appreciated. I'm thinking of just starting the app again in rails 2.2.2 it would only take 30 mins to get where I'm at, at least then I could follow the tutorial in the book and upgrade to rails

[Rails] Restricted Textmate Command+T (jump to file)

2009-03-27 Thread Fernando Perez
Hi, Does any Textmate user know how to tell the jump to file command to not look in some folders? Currently my doc/ and spec/ folders are polluting the search facility, and it has become very hard for me to get to the desired file. Thanks in advance. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Method not available within same module as definition

2009-03-27 Thread Conrad Taylor
On Thu, Mar 26, 2009 at 6:33 PM, ty...@oneinterface.net wrote: # This will probably be embarrassingly obvious. It acts as if it's an # evaluation order issue (like the method call is happening prior to the # method definition). But that isn't the case. The model_names method # works fine on

[Rails] Router :requirements

2009-03-27 Thread Fresh Mix
How to make :requirements for router parameter that accept any string / any character? map.page 'search/:word', :controller = 'search', :requirements = { :word = } By default it doesn't accept dot in search word, so: http://mydomain.com/search/this.is.test returns Error 404 page not

[Rails] Re: Method not available within same module as definition

2009-03-27 Thread tyler
Conrad, Interesting...please do let me know your results with 1.8.6. Thanks, Tyler Arrigoni President OneInterface.net Network Engineering, Inc. 7475 North Palm, Suite 105, Fresno, CA 93711 Voice: 559-437-3750 ext. 110 Cell: 559-696-0400 Fax1: 866-691-5145 (confidential) Fax2: 559-437-3754

[Rails] Content Management the Rails way

2009-03-27 Thread Neil Middleton
Hi guys, I'm currently looking into the CMS's we use at the moment in house with an aim to replace them with a Rails / Ruby based system to match our application stacks (we do 50/50 app / CMS development). At the moment we're using Joomla and a CMS written in ColdFusion. Question is, I've looked

[Rails] [Announce] MashEdge Web Book on Build a Web Site with Ruby on Rails for newcomers

2009-03-27 Thread Kiran Achyutuni
If you are a newcomer to Ruby on Rails and want to build a website with it, I have consolidated many of the links to the gems of knowledge scattered on the internet into a dynamic web book titled Build a Web Site with Ruby on Rails at http://www.mashedge.com/web_books/show_wbook_details/9

[Rails] Re: Ruby-GetText-Package-2.0.0

2009-03-27 Thread grosser.michael
i would recommend to simply switch to fast_gettext http://github.com/grosser/fast_gettext , a simpler/cleaner/faster/efficient solution that will not break when any part of rails is updated, since it cooperates with I18n (through gettext_i18n_rails plugin). On 24 Mrz., 02:06, Leon

[Rails] Re: Ruby-GetText-Package-2.0.0

2009-03-27 Thread grosser.michael
i would recommend to simply switch to fast_gettext http://github.com/grosser/fast_gettext , a simpler/cleaner/faster/efficient solution that will not break when any part of rails is updated, since it cooperates with I18n (through gettext_i18n_rails plugin). On 24 Mrz., 02:06, Leon

[Rails] Add params tto links on page load - ?domain=xyz.com

2009-03-27 Thread Mario Flores
I'm working on testing an app locally that will be serving multiple domains. We've currently set up a mechanism for testing this ?domain=xyz.com, but this param isn't carried over when clicking on links throughout the site. Is there anyway to globally change the way rails render's links to add

[Rails] Re: 2.3 Nested Forms, dynamically add an attribute

2009-03-27 Thread tilt
Thanks very much, yeah I'll try to deal with that subject in time. In the meanwhile I'd be happy enough to find a Rails-like way to implement a New Button which calls a controller action and passes the value of a select tag to that action. That's not the nicest workaround, but it should work. Or

[Rails] Re: 2.3 Nested Forms, dynamically add an attribute

2009-03-27 Thread Fernando Perez
Or I'll just set up the view component as I did in Rails 2.2. At least I don't have to add setters to the model and Rails 2.3 manages that automatically. When Rails 2.3 got released, the first thing I didn't was try to migrate my former nested form integration to Rails' builtin system, but it

[Rails] Re: Method not available within same module as definition

2009-03-27 Thread Conrad Taylor
On Fri, Mar 27, 2009 at 2:16 AM, ty...@oneinterface.net wrote: Conrad, Interesting...please do let me know your results with 1.8.6. Thanks, Tyler Arrigoni President OneInterface.net Network Engineering, Inc. 7475 North Palm, Suite 105, Fresno, CA 93711 Voice: 559-437-3750 ext. 110

[Rails] Re: Database Migration error

2009-03-27 Thread Colin Law
Can you supply some more code please, assuming it is not hundreds of lines then show us the migration .rb contents. 2009/3/27 Doel Sengupta rails-mailing-l...@andreas-s.net This is my first post to the forum, when I try to run a migration that has a t.column, I get this: rake aborted!

[Rails] Re: Adding a css stylesheet to a plugin

2009-03-27 Thread Harold
I don't think it is a good idea to try to 'auto-load' a css. The css is used in a layout, but it's up to the user to specify which layout or layouts she wants to use your plugin in. Also, your css rules may colide with someone else's code and if you auto-load it, it would be very hard to catch

[Rails] Re: What wrong?

2009-03-27 Thread robdoan
As I remember u can not use lambda do do |abc | end U must use : lambda {| abc| } On Mar 26, 6:16 pm, Fresh Mix rails-mailing-l...@andreas-s.net wrote: I have this problem only if I run Rails by mongrel_cluster. ./script/server works fine. -- Posted viahttp://www.ruby-forum.com/.

[Rails] Re: question about creating a link to download

2009-03-27 Thread robdoan
On Mar 26, 3:54 am, Jay Dev rails-mailing-l...@andreas-s.net wrote: This is an example. I tried this below code but it blocks mongrel until the whole file is read which is over 500 MB.   def download    

[Rails] Prag Progs: Developing Facebook Platform Applications with Rails - any good?

2009-03-27 Thread itsastickup
Hi there, I found the first Pragmatic Programmer's book from all those years ago very readable. But I don't wish to blow a load of money on a bad book having made the presumption that the author of this book is as good as the original authors. Anyone read it? I would be particularly interested

[Rails] Re: 2.3 Nested Forms, dynamically add an attribute

2009-03-27 Thread John Small
Fernando Perez wrote: If you are concerned with the 15 loc added to the model for the new_whatever_attribute= and so on, well actually using metaprogramming, you easily extract this into a plugin and share the code between various models. I think I will follow this path instead of using

[Rails] Re: What wrong?

2009-03-27 Thread Conrad Taylor
On Fri, Mar 27, 2009 at 2:59 AM, robdoan quydoant...@gmail.com wrote: As I remember u can not use lambda do do |abc | end U must use : lambda {| abc| } lambda do |abc| ... end is equivalent to lambda { |abc| ... } Thus, they are both legal in Ruby 1.8 and 1.9. -Conrad On Mar 26,

[Rails] Re: Prag Progs: Developing Facebook Platform Applications with Rails - any good?

2009-03-27 Thread Conrad Taylor
On Fri, Mar 27, 2009 at 5:03 AM, itsastickup lorrim...@googlemail.comwrote: Hi there, I found the first Pragmatic Programmer's book from all those years ago very readable. But I don't wish to blow a load of money on a bad book having made the presumption that the author of this book is as

[Rails] Re: which plugin useful for facebook API?

2009-03-27 Thread Conrad Taylor
On Fri, Mar 27, 2009 at 5:36 AM, itsastickup lorrim...@googlemail.comwrote: Hi, this was found by easily going to the facebook developer site: http://wiki.developers.facebook.com/index.php/Ruby_on_Rails That doesn't appear to answer his question, which I am interested in also.

[Rails] Re: Prag Progs: Developing Facebook Platform Applications with Rails - any good?

2009-03-27 Thread Fernando Perez
I found the first Pragmatic Programmer's book from all those years ago very readable. But I don't wish to blow a load of money on a bad book having made the presumption that the author of this book is as good as the original authors. Not a single book from pragprog I have read (around 10)

[Rails] Re: question about creating a link to download

2009-03-27 Thread Fernando Perez
Jay Dev wrote: Hi Folks, I'm new to Rails and working on a project where after the user logs in they can click on a link to download an exe file ( say for example the file is at http://test.com/test.exe). I want to keep the link to the exe file hidden. What are the best ways to implement

[Rails] Re: What wrong?

2009-03-27 Thread Frederick Cheung
On Mar 27, 12:28 pm, Conrad Taylor conra...@gmail.com wrote: On Fri, Mar 27, 2009 at 2:59 AM, robdoan quydoant...@gmail.com wrote: As I remember u can not use lambda do do |abc | end U must use : lambda {| abc|   } lambda do |abc| ... end is equivalent to lambda { |abc| ... }

[Rails] Re: Browser detection with Rails?

2009-03-27 Thread Ben Allfree
One typo above: isSafari3 = (ua.index('webkit/5')) ? true : false -- 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,

[Rails] Re: no one cares about i18n (was [OT]: Asking questions on t

2009-03-27 Thread Fernando Perez
Paul Barry wrote: Do most others in the community agree with this statement? It seems to me that i18n is: 1. Actually important to many people 2. Not really the difficult to implement in concept Actually it is a bit painful to implement, as it means removing all the text from views

[Rails] Re: Send a collection from view to controller

2009-03-27 Thread Phillip
First, the comparison between params[:new_member] and nil should use == if nil == params[:new_member] On Mar 26, 1:20 pm, Hiro hiromoto.hiro...@gmail.com wrote: Hi everybody, Maybe this is a sort of newbie question but I've been trying to solve it for several days without a solution.

[Rails] Globalize question

2009-03-27 Thread Heinz Strunk
Hello, I just installed globalize2 (http://github.com/joshmh/globalize2/tree/master) and wanted to translate a simple string. I googled and only found translations for models etc. Does anyone know how to translate simple strings like: en: Hello %= @user.name % to es: Hola %= @user.name %? All

[Rails] using pagination to group pages by attribute value

2009-03-27 Thread Shilo Ayalon
Hi - I'm trying to group records based on some attribute they or an association of their's have. The simplest example I could think of to drive my point is this: Assume the following model associations (pardon my butchering of rails) - Faculty has_many :courses Course belongs_to :faculty I

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2009-03-27 Thread Tony Ennis
Mr Mapes wrote: Ryan Bigg wrote: New way is to specify the fields. script/generate scaffold person first_name:string last_name:string I'm considering Ruby on Rails, but I already have a big database schema, and I'd rather not re-type firstname:string lastname:string, for the dozens

[Rails] Re: Adding a css stylesheet to a plugin

2009-03-27 Thread Davide Benini
I would instead use your plugin's install.rb to move the css to public/ stylesheets, and include instructions on how to include the CSS in layouts. You're definitely right here, and retrospectively it's quite obvious, use install.rb and copy it. Thanks for your suggestion, Davide -- Posted

[Rails] Re: Prag Progs: Developing Facebook Platform Applications with Rails - any good?

2009-03-27 Thread itsastickup
Conrad, I am asking on a discussion forum, there is no need to presume I don;t know of other methods to get information. Thankyou for trying but I specifically asked for people's opinions, not advice. On 27 Mar, 12:34, Conrad Taylor conra...@gmail.com wrote: On Fri, Mar 27, 2009 at 5:03 AM,

[Rails] Re: Prag Progs: Developing Facebook Platform Applications with Rails - any good?

2009-03-27 Thread itsastickup
that's good to know. On 27 Mar, 13:08, Fernando Perez rails-mailing-l...@andreas-s.net wrote: I found the first Pragmatic Programmer's book from all those years ago very readable. But I don't wish to blow a load of money on a bad book having made the presumption that the author of this

[Rails] [OT] Git branch and merge

2009-03-27 Thread James Byrne
I have been using Git for about a year now, but always in the master branch. I decided to try working in a branch to get experience with merging. Naturally enough, I am now observing some behaviour that I do not understand. I would appreciate any explanation of what is happening and whether

[Rails] How do you protect files in RoR

2009-03-27 Thread Milan Dobrota
I'm mostly interested in mp3 files. I'm supposed to build a music store app. Where should you keep files (s3?). And what's more important how do you protect other people from using the same link? I guess you have to generate it dynamically. Is there any other solution or maybe any plugin

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread Milan Dobrota
Well you didn't commit y.rb. If you wanna save not commited changes for later use you should use stash. p.s. I'm sorry if this gets sent twice it wouldn't let me submit because the quote was too long. :) -- Posted via http://www.ruby-forum.com/.

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread Colin Law
2009/3/27 James Byrne rails-mailing-l...@andreas-s.net .. I initially pull from the remote repository and then checkout -b workcopy from the master. At this point workcopy and master are identical. In workcopy I modify x.rb and y.rb. I then add/commit x.rb in workcopy. Next I checkout

[Rails] Images and Alt Tags Acheiving Better Search Engine Ranking

2009-03-27 Thread Edy Susanto
Many years ago, my sister asked me to look at the Google a href=http://images.google.com/;Images search/a . When I first saw the page, I thought Google was offering a place for freebie photos before I realized that it was probably searching for and finding the alt tag text written in the HTML for

[Rails] Re: Send a collection from view to controller

2009-03-27 Thread Hiro
On Mar 27, 8:53 am, Phillip p...@phillip harris.com wrote: First, the comparison between params[:new_member] and nil should use ==      if nil == params[:new_member] Yes you're right It was a typing error here in the post. But I still have this problem I hope so can help me.

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread Robert Walker
James Byrne wrote: I have been using Git for about a year now, but always in the master branch. I decided to try working in a branch to get experience with merging. Naturally enough, I am now observing some behaviour that I do not understand. I would appreciate any explanation of what is

[Rails] Starting Mongrels = no such file to load -- initializer (load error)

2009-03-27 Thread JMcG
I've searched high and low and cannot find a solution to this problem. Any help would be appreciated. My problem is when starting my mongrels with this command: mongrel_rails start -d -p 3000 -P log/mongrel1.pid I get this error in my mongrel_rails_persist.log: ** Starting Mongrel

[Rails] Re: How do you protect files in RoR

2009-03-27 Thread Frederick Cheung
On Mar 27, 3:45 pm, Milan Dobrota rails-mailing-l...@andreas-s.net wrote: I'm mostly interested in mp3 files. I'm supposed to build a music store app. Where should you keep files (s3?). And what's more important how do you protect other people from using the same link? I guess you have to

[Rails] LWGate

2009-03-27 Thread Edy Susanto
[spoiler=Mailing List WWW Gateway (LWGate)]The LWGate is a CGI script, written in Perl, which tries to merge the technologies of the WWW and mailing lists by: Presenting information about mailing lists to WWW users, Assisting users in executing mailing list commands though a user-friendly forms

[Rails] Re: Send a collection from view to controller

2009-03-27 Thread Colin Law
Have a look in the log to see what the parameters are, particularly params[:list]. I think your code is assuming it is an array but the error suggests otherwise. Also have a look in the debugger to what is what. Also the source of the web page may be informative. 2009/3/27 Hiro

[Rails] Re: rails's models diagrams

2009-03-27 Thread Isaac Amaru Zelaya Orellana
it´s not working, railroad generate applications diagrams, not for the framework, i have been looking around for one but it seems that there´s not one. i need a class or model diagram of the rails framework like the one that´s available for struts in java. please i´ll be very thankfull --

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread James Byrne
Please bear with me as I walk through this: I start with a pull from the remote. I then create and checkout a branch, say localtests. I modify a file X.rb on localtests. If I switch back to the master via git checkout then the change to x.rb comes with me into the master branch? However,

[Rails] Would learning Camping would help me learn Rails?

2009-03-27 Thread Fernando Perez
I want to learn about the Rails' internals, but it's pretty big to start with. So I was wondering if first diving into Camping, then moving on to Tails would be of any benefit? What do you think? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~

[Rails] Re: no such file to load -- config/environment - Apache2 Passenger 2.1.1

2009-03-27 Thread Charles Johnson
Yes, CentOS is different than ubuntu. You had said at the beginning that you were running ubuntu. Cheers-- Charles On Thu, Mar 26, 2009 at 11:49 AM, doron doronro...@gmail.com wrote: i use: Rails 1.2.3passenger2.1.2 Apache/2.0.52 (CentOS)

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread Colin Law
2009/3/27 James Byrne rails-mailing-l...@andreas-s.net Please bear with me as I walk through this: I start with a pull from the remote. I then create and checkout a branch, say localtests. I modify a file X.rb on localtests. If I switch back to the master via git checkout then the change

[Rails] Re: Help with AR design on a large (~100'sM) partition table

2009-03-27 Thread RobR
Jeremy, I did remove many indices as they aren't needed for the most likely use cases. Thank you for the sage suggestion. I saw an incredible improvement in insert speed (1.5x) and reduction in disk space usage (0.6x). I have to say I think I'm already hitting the wall with this simplistic

[Rails] Re: Noob test Q

2009-03-27 Thread elliottg
Any thoughts on this? Basically, I just need to know what create_user is doing? Is it creating a new User based upon the users.yml fixture that the test suit is loading, or is it something else? I couldn't find reference for this dynamic?? method anywhere. def

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread James Byrne
I think that I may see where I went wrong. Regardless of which named branch I am on, git automatically puts any changes that I make into what is effectively an anonymous working copy branch, where they remain until they are added to a branch's future commit set. Is this correct? -- Posted

[Rails] Re: Noob test Q

2009-03-27 Thread Colin Law
If you look down the end of the file with that code in you will find the definition of create_user. At least in my version anyway. I found it by a global search, but I realised when it found it that I should have looked in that file first. 2009/3/27 elliottg x...@simplecircle.net Any

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread Colin Law
2009/3/27 James Byrne rails-mailing-l...@andreas-s.net I think that I may see where I went wrong. Regardless of which named branch I am on, git automatically puts any changes that I make into what is effectively an anonymous working copy branch, where they remain until they are added to a

[Rails] Re: Noob test Q

2009-03-27 Thread elliottg
Doh... I just found it, right after my last post. Thanks for getting back to me. I am assuming that somehow @user is being returned or something? Because, assigns(:user) is being called on the next line?? Is that the case, and further any ideas why its coming up Nil? Testing in script/console

[Rails] How do I return values when using form_for

2009-03-27 Thread Siddharth Ravichandran
Hi I am trying to build a simple app where I'm trying to do pretty what scaffold does. My question is when I am using 'form_for' how do I return the id while editing the application like its done in the form_tag for example h1Editing book/h1 % form_tag :action = 'update', :id = @book do % %=

[Rails] Re: cross site scripting security

2009-03-27 Thread Larz
Here is where I am at with this so far ... I decied to try to change my code to be all javascript to get around the strange problem I was having, so I followed the advice from this site: http://david-burger.blogspot.com/2008/01/rails-forgery-protection-csrf-and-ajax.html Here is what my code

[Rails] Re: How do you protect files in RoR

2009-03-27 Thread Phlip
Frederick Cheung wrote: On Mar 27, 3:45 pm, Milan Dobrota rails-mailing-l...@andreas-s.net wrote: I'm mostly interested in mp3 files. I'm supposed to build a music store app. Where should you keep files (s3?). And what's more important how do you protect other people from using the same

[Rails] Re: no one cares about i18n (was [OT]: Asking questions on t

2009-03-27 Thread Marnen Laibow-Koser
Fernando Perez wrote: [...] Actually it is a bit painful to implement, as it means removing all the text from views and putting it?... well I don't really know. This is why I use gettext (or faster_gettext): the phrases themselves *are* the keys, so the views look like _('Welcome to the

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread James Byrne
Colin Law wrote: There are a number of good git tutorials on the web, google will find them. Perhaps looking at some of those would help to get the concepts sorted. It all seems a bit complex at first but once you have played with it for a while you will wonder how life managed without it.

[Rails] Re: Noob test Q

2009-03-27 Thread elliottg
It looks like I have a Filter chain halted error going on that is not allowing the user to be created. Thanks for all the help. On Mar 27, 1:27 pm, elliottg x...@simplecircle.net wrote: Doh... I just found it, right after my last post. Thanks for getting back to me. I am assuming that

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread Robert Walker
Colin Law wrote: Not really, they are not on a branch, your working copy is just a set of files in your folders. When you switch branches git overwrites them with the version from the repository for that branch, unless they have been modified but not committed, in which case it does not

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread James Byrne
Robert Walker wrote: I'm not sure what version of git you're using, but I just did a sanity check with a simple git repository. The version of git I'm using (1.6.1.3) wouldn't let me switch to another branch with local changes to the working directory. I am stuck with Git 1.5.5 on

[Rails] Problems with Ruby code, when creating a mysql db

2009-03-27 Thread James Lopes
When I run rake db:migrate --trace I get the following (in C:/myRailsWork/bingo) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump rake aborted!

[Rails] Where does rails loads paths?

2009-03-27 Thread elioncho
Hi guys, I have this in my environment and was wondering the location of the code that actually loads this directory: config.load_paths += %W( #{RAILS_ROOT}/public/accounts/admin/lib ) I want to know the code that is used by rails to load the directories.

[Rails] Re: which plugin useful for facebook API?

2009-03-27 Thread itsastickup
If you were to actually read the content of the website, then it would be very clear as to which plugin/gem to use.  Also, the site contains additional That may be the case for you but you presume upon the OP and other readers. Having read that link, and wasted my time, I can say that in my

[Rails] Controller into the lib folder?

2009-03-27 Thread Alex
Hi everyone, is it possible to add a controller into the lib folder? I tried but it doesn't seem to work... Is it because it's not loaded? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Where does rails loads paths?

2009-03-27 Thread Alex
vendor/rails/railties/lib/initializer.rb Have a look at the process method and load_application_classes Alex On 27 mar, 15:51, elioncho elion...@gmail.com wrote: Hi guys, I have this in my environment and was wondering the location of the code that actually loads this directory:

[Rails] Re: which plugin useful for facebook API?

2009-03-27 Thread Philip Hallstrom
If it were me, I'd use facebooker. What I've read is that rfacebook while nice hasn't been maintained for quite awhile and is falling behind. That said, hop on the facebooker google group and read the recent posts about rails 2.3.2 compatibility so you know what version to grab and what

[Rails] Re: Noob test Q

2009-03-27 Thread Colin Law
I can't help with this as I have tweaked the create code so it is non-standard. Is there a before_filter in UsersController, if so then it may be failing in there. 2009/3/27 elliottg x...@simplecircle.net It looks like I have a Filter chain halted error going on that is not allowing the user

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread Colin Law
2009/3/27 James Byrne rails-mailing-l...@andreas-s.net Colin Law wrote: There are a number of good git tutorials on the web, google will find them. Perhaps looking at some of those would help to get the concepts sorted. It all seems a bit complex at first but once you have played with

[Rails] Re: How to pull down menu

2009-03-27 Thread JL Smith
http://guides.rails.info/form_helpers.html#making-select-boxes-with-ease --~--~-~--~~~---~--~~ 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: [OT] Git branch and merge

2009-03-27 Thread Colin Law
2009/3/27 Robert Walker rails-mailing-l...@andreas-s.net Colin Law wrote: Not really, they are not on a branch, your working copy is just a set of files in your folders. When you switch branches git overwrites them with the version from the repository for that branch, unless they have

[Rails] Re: HTTP Digest Authentication PUT DELETE problem. Bug ?

2009-03-27 Thread Scott Ahten
I've run into the same problem. GET and POST work find, but PUT and DELETE repeatedly asks for login information and never succeeds. On Mar 19, 6:47 pm, greq gdo...@gmail.com wrote: Hi all, I've got a problem with HTTP Digest Authentication after upgrading Rails to 2.3.2. It seems that it

[Rails] ANNOUNCE: Hirb - A gem enhancing your script/console

2009-03-27 Thread cldwalker
Hi, I'm announcing Hirb, a mini view framework which enables script/ console to provide custom views. Out of the box your activerecord objects come back as ascii tables. You can also configure your tree-based models to return as ascii trees: Numeric |-- Float |-- Integer | |-- Bignum

[Rails] Re: ActionMailer not send email and not generate error in log

2009-03-27 Thread Greg Donald
On Fri, Mar 27, 2009 at 1:18 AM, Nurzed Lkham rails-mailing-l...@andreas-s.net wrote: hello guys.. i was trying configuring SMTP with GMail n my rails appliaction. when running everything seems alright but the mails not getting delivered. also the logs show the action as successful . in

[Rails] Forms without a database backend

2009-03-27 Thread Brandon Olivares
Hi, I'm trying to create a simple contact form. It might use the database later for storing the messages, but not yet, I don't think. However, I'd still like to be able to validate the fields easily, like you would with ActiveRecord. How can I do this? I'm new to rails so really don't know

[Rails] Re: what is taking so long to display this page?

2009-03-27 Thread Scott Kulik
Denis Haskin wrote: And where was it going? ;-) dwh i had some cpu intensive code to validate the items on the page and i screwed up the query so it was running the code on all 7000 rows in the table instead of just the 50 displayed on current page. doh! -- Posted via

[Rails] Re: [OT] Git branch and merge

2009-03-27 Thread James Byrne
Colin Law wrote: I am using 1.5.6.3 on ubuntu. I think the situation you are describing may be because the file has been modified on the master and branch. I think if you make a new branch, checkout the branch, modify a file without committing (or staging) then checkout the master it

[Rails] Re: Forms without a database backend

2009-03-27 Thread Greg Donald
On Fri, Mar 27, 2009 at 4:05 PM, Brandon Olivares programmer2...@gmail.com wrote: I'm trying to create a simple contact form. It might use the database later for storing the messages, but not yet, I don't think. However, I'd still like to be able to validate the fields easily, like you would

[Rails] Re: Forms without a database backend

2009-03-27 Thread Brandon Olivares
-Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails- t...@googlegroups.com] On Behalf Of Greg Donald Sent: Friday, March 27, 2009 5:11 PM To: rubyonrails-talk@googlegroups.com Subject: [Rails] Re: Forms without a database backend You can validate an

[Rails] Re: Controller into the lib folder?

2009-03-27 Thread JMcG
You could add foo.rb into lib/modues and then where ever you want to access those methods you would need to include that file. require 'lib/modules/foo.rb' include foo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Forms without a database backend

2009-03-27 Thread Greg Donald
On Fri, Mar 27, 2009 at 4:16 PM, Brandon Olivares programmer2...@gmail.com wrote: Thanks, but should I create an ActiveRecord model even though it shouldn't be associated with a table? It would probably be the easiest way to get to the model validations. -- Greg Donald http://destiney.com/

[Rails] ActionMailer multipart: html, plain and attachment?

2009-03-27 Thread Danimal
Has anyone gotten emails to work where you specify the HTML and the plain text alternatives, but also include an attachment? Reason I'm asking: I'm sending out event notices, styled as HTML but with a plain text alternative. I also want to attach the .ics file. For some reason, I can't get this

[Rails] Re: Controller into the lib folder?

2009-03-27 Thread Colin Law
Why do you want to put a controller in the lib folder? That is what the controllers folder is for. 2009/3/27 Alex afolgue...@gmail.com Hi everyone, is it possible to add a controller into the lib folder? I tried but it doesn't seem to work... Is it because it's not loaded? Thanks!

[Rails] About AR relationship

2009-03-27 Thread Paul A.
Hi, I would like to make a relation using a different way then the classic belongs_to/has_many association. Instead of this, I would like to save the foreign key in the parent class as a list of ids. For instance, we can consider 2 models: File and Folder. Basically, we could add in File model

[Rails] Re: Loading classes

2009-03-27 Thread Matt Jones
If a class depends on another class in this situation, it should probably use an explicit require at the top of the file. Then you'll just need to add the correct directories to the load path. HOWEVER, unless you trust your users completely, you are headed down a very bad path. For example, a

  1   2   >