[Rails] Catching non-RSS/Atom feeds when using Feed-Normalizer

2008-11-23 Thread Neil Cauldwell
A production app is using FeedNormalizer in an rss daemon. The worker opens a 'Source' (the apps naming convention for an RSS feed), parses it using FeedNormalizer, and does the business on the items in the feed; feed = FeedNormalizer::FeedNormalizer.parse open(source.rss_url) A beta tester adde

[Rails] Re: content_for only works inside a yield?

2008-11-23 Thread Christopher
I have a similar problem. Upgrading to Rails 2.2.2 from 2.1.2 i've lost all view components that are inserted with content_for. The content_for call sits inside a view helper, which in turn is used inside the view (eg http://railscasts.com/episodes/30-pretty-page-title). If i move the content_for

[Rails] What to do when a user logs out, then presses the back button?

2008-11-23 Thread Liam Morley
There are two cases I'm concerned about here when a user logs out, then clicks the back button: 1. the user presses the "back" button and goes back to a page that would otherwise require authentication Right now, the existing page is still kept in cache, so private data is still being seen. I'm

[Rails] Re: Destroy method not working (routing question)

2008-11-23 Thread Rick
Hello again, So let's back up one step. Your error is "You have a nil object...", let's prove that is true. How about changing the <%= link_to %> to something simple like Product ID: <%= product %> Then, when that gives you nil cut the loop out and insert a statement that displays som

[Rails] Re: uncaught exception: controls.js requires including script.ac

2008-11-23 Thread Bobnation
Looks to me like you need to include the script.aculo.us library, which is found in your public/javascripts/ folder. However, add this to the of your application layout: <%= javascript_include_tag :defaults %> Then make sure that everything is in the javascripts folder. On Nov 24, 1:34 am, Sma

[Rails] uncaught exception: controls.js requires including script.ac

2008-11-23 Thread Smarty 2k
hi friends... Ajax problem please help me. Ajax using delete the record Browser Mozilla my controller: def delete Book.find(params[:id]).destroy redirect_to :action =>'book' end my view: <%= link_to_remote (image_tag("../images/delete_bt.gif", :border => 0)), :url =>{

[Rails] Re: MySQL

2008-11-23 Thread Mr. Watson
I try the command "rake db:migrate" and it tells me it cannot find libmysql.dll file. On Nov 24, 1:02 am, "Mr. Watson" <[EMAIL PROTECTED]> wrote: > It will let me go into mysql but I want to create a database. It is > not letting me. It says install gem mysql... I did that and got an > error. It

[Rails] Re: MySQL

2008-11-23 Thread Mr. Watson
It will let me go into mysql but I want to create a database. It is not letting me. It says install gem mysql... I did that and got an error. It reads "While generating documentation for mysql... MESSAGE: Unhandled special: Special: type=17..." etc On Nov 24, 12:45 am, "Mr. Watson" <[EMAIL PROTEC

[Rails] Re: MySQL

2008-11-23 Thread Mr. Watson
the command "mysql -u root" worked for me. Thanks, On Nov 24, 12:37 am, "Mr. Watson" <[EMAIL PROTECTED]> wrote: > Nothing. It just gives me the help list. > > On Nov 24, 12:31 am, "Simon Macneall" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Remove the space between the -p and root > > > ie mysqla

[Rails] Re: MySQL

2008-11-23 Thread Simon Macneall
Are you trying to log into the mysql command line tool to do sql queries etc? if so, then it isn't mysqladmin, it is just mysql ie 'mysql -u root -proot' if you are actually trying to do something with mysqladmin, you need to put that command on the command line, ie 'mysqladmin -u root -proo

[Rails] Re: MySQL

2008-11-23 Thread Mr. Watson
Nothing. It just gives me the help list. On Nov 24, 12:31 am, "Simon Macneall" <[EMAIL PROTECTED]> wrote: > Hi, > > Remove the space between the -p and root > > ie mysqladmin -u root -proot > > Simon > > On Mon, 24 Nov 2008 15:27:07 +0900, Mr. Watson <[EMAIL PROTECTED]>   > wrote: > > > > > Hello

[Rails] Re: MySQL

2008-11-23 Thread Simon Macneall
Hi, Remove the space between the -p and root ie mysqladmin -u root -proot Simon On Mon, 24 Nov 2008 15:27:07 +0900, Mr. Watson <[EMAIL PROTECTED]> wrote: > > Hello, > > I am having problems with MySQL. > > Running: PC with Windows Vista > Installed: Instant Rails AND RoR on (http://www.rub

[Rails] Re: Problems installing mysql gem in Windows Vista

2008-11-23 Thread Rick
Hi Schalk, I've noticed that myself. It seems that at some point the what gemspec file got corrupted or abandoned or your guess goes here in gold. You've got maybe three options available. 1) Find a pre-built gem in whatever passes for package format on your os. 2) Build your own gemspec to a

[Rails] MySQL

2008-11-23 Thread Mr. Watson
Hello, I am having problems with MySQL. Running: PC with Windows Vista Installed: Instant Rails AND RoR on (http://www.rubyonrails.com) I have edited the database.yml file. I went to C:/InstantRails/mysql/bin>mysqladmin -u root -p root And it says "password:". I press enter and it shoots thi

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Bobnation
Excellent. I'm still trying to figure out what was missing, but there must have been a dependency missing. I'm glad I could help. On Nov 23, 11:45 pm, Mrmaster Mrmaster <[EMAIL PROTECTED] s.net> wrote: > Everything works now. Thank you soo much for your help. Just a recap I > think the problem wa

[Rails] Hidden file

2008-11-23 Thread Rong
Does anyone know the purpose of a hidden file called ".gems" in my home folder on os x? --~--~-~--~~~---~--~~ 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-tal

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Everything works now. Thank you soo much for your help. Just a recap I think the problem was my ruby install the ruby full install command you gave fixed everything. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message becaus

[Rails] strange behavior of expire_fragment

2008-11-23 Thread Richard Schneeman
I'm following railscasts tutorial on fragment caching, everything works great except for the sweepers. When i put expire_fragment(%r{.*}) directly in my controller, i can expire my fragments with wonderful ease. Yet when i write a nice little sweeper like this code block, nothing gets expired (the

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Bobnation
Make sure you put the dash in between ruby and full. Looking at what you installed, I'm thinking that is not the problem, but it might not hurt. On Nov 23, 10:45 pm, Mrmaster Mrmaster <[EMAIL PROTECTED] s.net> wrote: > Bobnation wrote: > > Did you do an apt-get install ruby-full or just the ruby

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Bobnation wrote: > Did you do an apt-get install ruby-full or just the ruby package? > > On Nov 23, 10:34�pm, Mrmaster Mrmaster <[EMAIL PROTECTED] I'm assuming if i have the latest version wouldn't everything with it come installed? -- Posted via http://www.ruby-forum.com/. --~--~-~--

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Bobnation wrote: > Did you do an apt-get install ruby-full or just the ruby package? > > On Nov 23, 10:34�pm, Mrmaster Mrmaster <[EMAIL PROTECTED] I've also tried the command you put there and received this message: [EMAIL PROTECTED]:/usr/local/lib/site_ruby/1.8$ sudo apt-get install ruby full

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Bobnation wrote: > Did you do an apt-get install ruby-full or just the ruby package? > > On Nov 23, 10:34�pm, Mrmaster Mrmaster <[EMAIL PROTECTED] I used this command: $ sudo apt-get install ruby irb rdoc libruby1.8 ruby1.8-dev I got it from Beginning rails from novice to professional book. --

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Bobnation
Did you do an apt-get install ruby-full or just the ruby package? On Nov 23, 10:34 pm, Mrmaster Mrmaster <[EMAIL PROTECTED] s.net> wrote: > Bobnation wrote: > > This line seems strange:  install -c -m 0644 ubygems.rb /usr/local/lib/ > > site_ruby/1.8/ubygems.rb > > > It looks like it is missing a

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Bobnation wrote: > This line seems strange: install -c -m 0644 ubygems.rb /usr/local/lib/ > site_ruby/1.8/ubygems.rb > > It looks like it is missing an "r" ... but I might just be nitpicking > here. Have you tried installing an older version (say 1.3.0) and then > updating to 1.3.1? Also, do you

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Bobnation wrote: > What OS are you using? > > On Nov 23, 7:28�pm, Mrmaster Mrmaster <[EMAIL PROTECTED] Actually i just upgraded to Ubuntu 8.10, tried the same steps and still got the same error message. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Bobnation
This line seems strange: install -c -m 0644 ubygems.rb /usr/local/lib/ site_ruby/1.8/ubygems.rb It looks like it is missing an "r" ... but I might just be nitpicking here. Have you tried installing an older version (say 1.3.0) and then updating to 1.3.1? Also, do you have the development headers

[Rails] Re: has_many (but parent & child should be same table )

2008-11-23 Thread Thani Ararsu
Philip Hallstrom wrote: > http://agilewebdevelopment.com/plugins/search?search=friends > > Find one that only requires a *single* row in the database to indicate > you and I are friends as opposed to "Philip is a friend of Thani" > *and* "Thani is a friend of Philip". > > Last time I did this

[Rails] Re: RESTful url not working

2008-11-23 Thread Thani Ararsu
Nick Hoffman wrote: > Hi Ashit. Another thing that you can do is test out the various URL > and path helpers in your app's console. For example: > > $ script/console > Loading development environment (Rails 2.1.0) >>> > ?> app.photos_url > => "http://www.example.com/photos"; >>> > ?> app.photos_p

[Rails] Re: acts_as_commentable: find Post by date of comment

2008-11-23 Thread Ryan Bigg
Message.all.sort_by { |m| m.comments.blank? ? m.created_at : m.comments.last.created_at }[0..4] --~--~-~--~~~---~--~~ 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 rubyonr

[Rails] Re: Routing to a new action of a nested resource

2008-11-23 Thread Nick
On Nov 4, 8:08 am, Vahagn Hayrapetyan <[EMAIL PROTECTED] s.net> wrote: > Issue solved! > > users.resource:houses, :controller => 'user_house' > > instead of: > > users.resource:house, :controller => 'user_house' > end > > Apparently the resources are always plural, regardless that a user only > ha

[Rails] Updating select attributes on a profile page

2008-11-23 Thread Bobnation
Thanks ahead of time for everyone who will help out with this. I have a profile page for a blog engine I'm writing (because everyone much write a blog engine at some point to learn stuff) and I want to allow members the ability to update their passwords. What I'm having a problem with right now i

[Rails] Actionwebservice as a SOAP client to .NET services.

2008-11-23 Thread Tim Uckun
I have read the (scant) documentation on the datanoise actionwebservice gems and can't figure out how you are supposed to structure the SOAP client. Has anybody ever used actionwebservice as a client? If so could somebody please put a sample someplace? Thanks. --~--~-~--~~-

[Rails] Re: RESTful url not working

2008-11-23 Thread Nick
Hi Ashit. Another thing that you can do is test out the various URL and path helpers in your app's console. For example: $ script/console Loading development environment (Rails 2.1.0) >> ?> app.photos_url => "http://www.example.com/photos"; >> ?> app.photos_path => "/photos" >> ?> quit Cheers, N

[Rails] Re: calling a partial from within a model / model's method?

2008-11-23 Thread Nick
On Nov 23, 9:31 pm, "Joel Oliveira" <[EMAIL PROTECTED]> wrote: > Hey everyone, > > I have a model I extended w/STI to allow me to write little widgets or > modules for my web-app ... that part's working well.   However, I'm getting > to the point where, depending on the model's type/class I would

[Rails] calling a partial from within a model / model's method?

2008-11-23 Thread Joel Oliveira
Hey everyone, I have a model I extended w/STI to allow me to write little widgets or modules for my web-app ... that part's working well. However, I'm getting to the point where, depending on the model's type/class I would like to render a partial so that each type has it's own look/feel/content

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Bobnation wrote: > What OS are you using? > > On Nov 23, 7:28�pm, Mrmaster Mrmaster <[EMAIL PROTECTED] I'm using Ubuntu 8.04 -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Re: Problem with RubyGems installation

2008-11-23 Thread Bobnation
What OS are you using? On Nov 23, 7:28 pm, Mrmaster Mrmaster <[EMAIL PROTECTED] s.net> wrote: > Hello, > > I am trying to install RubyGems on Ubuntu and i'm having trouble. I've > downloaded rubygems 1.3.1 and when i run the sudo ruby setup.rb command > I get the problem mentioned below. I'd real

[Rails] Ruby on Rails

2008-11-23 Thread Kesha Coggins
The Ruby on Rails web application framework has built up a tremendous head of steam over the last year. Fueled by some significant benefits and an impressive portfolio of real-world applications already in production, Rails is destined to continue making significant inroads in 2006. Simply put

[Rails] coupon

2008-11-23 Thread Russell Norris
http://www.mrcheapstuff.com/categories/electronics/buycom-coupons/ --~--~-~--~~~---~--~~ 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-talk@googlegroups.com To

[Rails] Problem with RubyGems installation

2008-11-23 Thread Mrmaster Mrmaster
Hello, I am trying to install RubyGems on Ubuntu and i'm having trouble. I've downloaded rubygems 1.3.1 and when i run the sudo ruby setup.rb command I get the problem mentioned below. I'd really appreciate if someone can help me out. Thanks mkdir -p /usr/local/lib/site_ruby/1.8 mkdir -p /usr/

[Rails] Re: RESTful url not working

2008-11-23 Thread Bobnation
"rake routes" really becomes your friend here as you are able to take a look at everything that will work. Trust me, just run it and look over the output to see where you might be going wrong. On Nov 23, 4:03 pm, Ashit Vora <[EMAIL PROTECTED]> wrote: > Hi, > 'm new to Rails. > I tried using _path

[Rails] Re: Destroy method not working (routing question)

2008-11-23 Thread cardinallijr
Hello Rick, Thanks for you reply. Yes, the controller is "admin/products". With rake routes I have: DELETE /admin/products/:id {:controller=>"admin/ products", :action=>"destroy"} I tried to call admin_products_path(product) like you suggested but it shows me an error (You have a nil object ...

[Rails] Problems installing mysql gem in Windows Vista

2008-11-23 Thread Schalk Neethling
Hey all, The problems keep coming. Having upgraded everything and upgraded to Rails 2.2.2 I now wanted to install the MySQL gem as I am getting the following error when trying to load up the app. no such file to load -- mysql Normally running gem install mysql works with no problems but, now

[Rails] strptime and localization

2008-11-23 Thread Marcelo Barbudas
Hi, My project uses Date::MONTHNAMES and Date::ABBR_MONTHNAMES for localization. I've run into an issue where I need to use strptime to parse a localized string. Has anyone run into this? How did you fix it? -- M. --~--~-~--~~~---~--~~ You received this messag

[Rails] Re: Destroy method not working (routing question)

2008-11-23 Thread Rick
This might actually work :-) <%= link_to 'delete', admin_products_path(product), :method => :delete, :confirm => 'Are you sure?' %> Rick On Nov 23, 12:40 pm, Rick <[EMAIL PROTECTED]> wrote: > Hello Alberto, > > In your view, what are you trying to say with [:admin, product]. > Is it p

[Rails] Re: RESTful url not working

2008-11-23 Thread Rick
Hello Ashit, If you run "rake routes" in your project directory you'll see what routes are available. Also, the singular vs plural question needs to be considered here. Typically: The model has a singular name - models/path.rb The controller has a plural name - controllers/paths_controlle

[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Alex Sonar
Thanks again! Frederick Cheung wrote: > Require it explicitly from the extension file ? > > Sent from my iPhone > > On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED] -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this messag

[Rails] Re: Cannot get fixtures working (with has_and_belongs_to_many)

2008-11-23 Thread Rob Biedenharn
On Nov 23, 2008, at 5:22 PM, Peter wrote: > > Hmmh, > > even after cleaning up the roles_users (without timestamp) it does not > work (Hint from [1]) > Tried out different order of fixture importing -> nothing helps. > > So, I switched to the old way to define fixtures [2] and it works :-) > > R

[Rails] Re: Destroy method not working (routing question)

2008-11-23 Thread Rick
Hello Alberto, In your view, what are you trying to say with [:admin, product]. Is it perhaps {:controller => "admin/product"}? rake routes on your routes.rb shows: DELETE /admin/products/:id {:action=>"destroy", :controller=>"admin/products"} So you should be able to use:

[Rails] Re: Possible bug on find method with :select attribute and aggregate functions...

2008-11-23 Thread Alfredo Rico Moros
Yes!! You are right!! Thanks a lot!! On Nov 24, 4:04 pm, Frederick Cheung <[EMAIL PROTECTED]> wrote: > On 23 Nov 2008, at 19:07, Alfredo Rico Moros <[EMAIL PROTECTED]>   > wrote: > > > > > > > Hi to everyboy.. I need your help in order to know if I get wrong.. > > > I have this migration file: >

[Rails] Re: Cannot get fixtures working (with has_and_belongs_to_many)

2008-11-23 Thread Peter
Hmmh, even after cleaning up the roles_users (without timestamp) it does not work (Hint from [1]) Tried out different order of fixture importing -> nothing helps. So, I switched to the old way to define fixtures [2] and it works :-) Regards, Peter. [1] http://groups.google.com/group/rubyonrail

[Rails] RESTful url not working

2008-11-23 Thread Ashit Vora
Hi, 'm new to Rails. I tried using _path and _url with link_to helper method but it doesnt work for me. Does anyone know what can be the issue? my code is Hello Rails <%= flash[:notice] %> <%= link_to 'Show Blog', posts_url %> Post is my controller The error 'm getting is undefined local va

[Rails] rake rails:update

2008-11-23 Thread Schalk Neethling
Hey all, Are you supposed to get some type of feedback when running the rake rails:update task from a rails shell? And on that subject, I installed Rails 2.2.2 and then ran the the above command, got no feedback and nothing changed. Now when I create a new project I find some new files: init

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Greg Hauptmann
thanks - got the auto-creation of nested models working! Now I seem to be on the next challenge of getting decent validation error messages show on the view with the nested models :) Seems to be somewhat discussed at http://railscasts.com/episodes/75-complex-forms-part-3 but doesn't seem to hav

[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Frederick Cheung
Require it explicitly from the extension file ? Sent from my iPhone On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED] s.net> wrote: > > Fred, > > I really appreciate your help. The following works like a charm. > > silencio:alias u2$ script/console > Loading development environment (Rail

[Rails] Re: Possible bug on find method with :select attribute and aggregate functions...

2008-11-23 Thread Frederick Cheung
On 23 Nov 2008, at 19:07, Alfredo Rico Moros <[EMAIL PROTECTED]> wrote: > > Hi to everyboy.. I need your help in order to know if I get wrong.. > > I have this migration file: > > class CreateSpecifications < ActiveRecord::Migration > def self.up >create_table :specifications do |t| >

[Rails] Re: Rakismet revisited :(

2008-11-23 Thread Rick
Schalk, The install worked fine in this environment: Ruby version1.8.7 (powerpc-darwin9) RubyGems version1.3.1 Rails version 2.1.2 Active Record version 2.1.2 Action Pack version 2.1.2 Active Resource version 2.1.2 Action Mailer version 2.1.2 Active Support version 2.1.2 A

[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Alex Sonar
Fred, I really appreciate your help. The following works like a charm. silencio:alias u2$ script/console Loading development environment (Rails 2.2.2) >> require 'app/helpers/alias.rb' => ["XYZ"] >> require 'app/views/alias_ext.rb' => [] >> XYZ.new 1,2 before chain in Alias constructor after cha

[Rails] Re: Rakismet revisited :(

2008-11-23 Thread Schalk Neethling
Hey Rick, Adding -v generates the following output: script/plugin -v install git://github.com/jfrench/rakismet Plugins will be installed using http git clone --depth 1 git://github.com/jfrench/rakismet "C:/DEVELOPMENT/osc/vendor/plugins/rakismet" removing: C:/DEVELOPMENT/osc/vendor/plugins/raki

[Rails] Re: Strange behavior of alias_method_chains

2008-11-23 Thread Frederick Cheung
The problem here is that the "normal" XYZ in xyz.rb is never loaded so you're trying to call Object's initialize, which does not take 2 arguments Fred Sent from my iPhone On 23 Nov 2008, at 18:52, Alex Sonar <[EMAIL PROTECTED] s.net> wrote: > > Greetings. > > I've got very strange behavio

[Rails] Possible bug on find method with :select attribute and aggregate functions...

2008-11-23 Thread Alfredo Rico Moros
Hi to everyboy.. I need your help in order to know if I get wrong.. I have this migration file: class CreateSpecifications < ActiveRecord::Migration def self.up create_table :specifications do |t| t.string :tolerancia t.integer :umbral t.timestamps end end def s

[Rails] Destroy method not working (routing question)

2008-11-23 Thread cardinallijr
Hi all, I'm trying to implement an admin control panel for my application and everything seems to work fine, except when I try to call the destroy method from the view. I really tried to search for a solution, reading some routing rails articles, but can't figure out what's going on. When I call

[Rails] Re: selectedIndex update

2008-11-23 Thread Frederick Cheung
On Nov 23, 7:20 pm, Will <[EMAIL PROTECTED]> wrote: > Is there a way to tell collection_select to use a specific ID then > other than machine_user_id.  That is what I was originally trying to > do so I did not have to go down into the object from the form . Of course! collection_select(:machine

[Rails] Re: selectedIndex update

2008-11-23 Thread Will
Is there a way to tell collection_select to use a specific ID then other than machine_user_id. That is what I was originally trying to do so I did not have to go down into the object from the form . I was trying to get around it by using a call to a form $("# {machine.fqdnj}").machine[user_id].se

[Rails] Strange behavior of alias_method_chains

2008-11-23 Thread Alex Sonar
Greetings. I've got very strange behavior of alias_method_chains, and I hope someone will advise me. I have a rails 2.2.2 app created with #rails aliasApp , a class XYZ residing in app/helpers/xyz.rb: class XYZ attr_accessor :name attr_accessor :value def initialize (a, b) puts "i

[Rails] Re: List of Rails Development Studios?

2008-11-23 Thread Chris Conrey
One place to start is http://www.workingwithrails.com/ On Sun, Nov 23, 2008 at 9:15 AM, tefflox <[EMAIL PROTECTED]> wrote: > > Hello, I'm nearing completion of my first paying project. Without > going into details of my situation up front, I'd like to ask if there > is somewhere a list of firms

[Rails] Re: Accessing a file with normal Ruby IO fails. Security issue of what?

2008-11-23 Thread RichardOnRails
Hi Rick, > csv_data_dir = RAILS_ROOT + "/public/data/csv" Now that looks like REAL Ruby-on-Rails programming. Many thanks. I'll post back on success/failure later today or tomorrow. Best wishes, Richard On Nov 23, 4:30 am, Rick <[EMAIL PROTECTED]> wrote: > Richard, > > What you want is: > >

[Rails] Re: Accessing a file with normal Ruby IO fails. Security is

2008-11-23 Thread RichardOnRails
Hi Duilio, Thanks for your responses. I'll try them out today. I have a slight digression: in the process of removing my debugging code I managed to mess a few things up, which I'll have to fix first. I'll post back with the outcome. > PS: I'm sorry for my English No apology necessary. It

[Rails] Rakismet revisited :(

2008-11-23 Thread Schalk Neethling
Hey all, Ok it seems that I got my one app upgraded to 2.1.2 successfully. Yeah! Now, when I try to install the Rakismet plugin I get the following: script/plugin install git://github.com/jfrench/rakismet script/plugin install git://github.com/jfrench/rakismet removing: C:/DEVELOPMENT/osc/vendo

[Rails] content_for only works inside a yield?

2008-11-23 Thread phil
I have a partial that has a couple of content_for blocks in it. This works fine if I render it from a view that will in itself get rendered view yield :layout. But, if I try and render it directly from the application layout none of the content_for stuff gets interpreted. Two questions 1) Is this

[Rails] List of Rails Development Studios?

2008-11-23 Thread tefflox
Hello, I'm nearing completion of my first paying project. Without going into details of my situation up front, I'd like to ask if there is somewhere a list of firms that specialize in Rails development. --~--~-~--~~~---~--~~ You received this message because you ar

[Rails] Recent and Popular Posts in Beast Forum

2008-11-23 Thread Gearóid O'Ceallaigh
Hi, so I've integrated the Beast forum into my ruby on rails website and would like to display some of the forum data throughout the website. Basically, I'd like to list the last 5 posts to a UNIQUE topic, and also the most popular topics. I'm sure this wouldn't be too tough to accomplish but I

[Rails] Re: rename public/images

2008-11-23 Thread Bill Walton
Hi Michael, Michael wrote: > > Is it possible to rename the images folder. > Of course. But I'm pretty sure you won't like the consequences. What are you trying to accomplish? Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[Rails] Re: mislav-will_paginate and acts_as_taggable_on_steorids problem

2008-11-23 Thread Jochen Kaechelin
Am 23.11.2008 um 15:09 schrieb Frederick Cheung: > > That's the problem. Acts as taggable on steroids defines its own Tag > class, your tag class doesn't have all the methods that one has. Ok, thanx! That was the problem great! --~--~-~--~~~---~--~~ Y

[Rails] Re: How could I uninstall the build-in gems in Leopard

2008-11-23 Thread [EMAIL PROTECTED]
Thanks for both of you. It looks like the simple way is ignoring it... On Nov 18, 5:23 am, "Brian Hogan" <[EMAIL PROTECTED]> wrote: > On our setups, we simply use the built-in mac stuff and then update the old > versions. > > gem update --system > gem install rails > > You can safely ignore the o

[Rails] Re: mislav-will_paginate and acts_as_taggable_on_steorids problem

2008-11-23 Thread Frederick Cheung
That's the problem. Acts as taggable on steroids defines its own Tag class, your tag class doesn't have all the methods that one has. Fred Sent from my iPhone On 23 Nov 2008, at 13:01, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: > > > Am 23.11.2008 um 13:24 schrieb Frederick Cheung: > >> >>

[Rails] Ajax and Flash notice

2008-11-23 Thread Nurzed Lkham
I'm using some AJAX to create a form, and when the form is saved, I want to give the user some information. How to show flash notice in my main layout. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscr

[Rails] Re: Can't remove gem

2008-11-23 Thread Craig Demyanovich
On Sat, Nov 22, 2008 at 10:08 PM, Rong <[EMAIL PROTECTED]> wrote: > > OK, so someone has figured out that Merb is breaking Rails 2.2.2. I haven't ready anything about that on the Rails or Merb mailing lists. Have a reference? > There is a gem called do_sqlite3 which is in conflict with rails.

[Rails] OpenID authentication

2008-11-23 Thread PanosJee
Hi there, I am trying to use the OpenID authentication plugin of DHH in conjuction with ruby-openid 2.1.2 gem put it seems there is a problem because in my login action the plugin redirects me to the openid provider and then i have the exception when i have to render or redirect to another page Th

[Rails] Re: mislav-will_paginate and acts_as_taggable_on_steorids problem

2008-11-23 Thread Jochen Kaechelin
Am 23.11.2008 um 13:24 schrieb Frederick Cheung: > > > > On 23 Nov 2008, at 11:43, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: > >> >> >> Am 23.11.2008 um 12:10 schrieb Frederick Cheung: >> >>> >>> >>> >>> On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: I always get the fol

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Frederick Cheung
Sent from my iPhone On 23 Nov 2008, at 12:38, "Greg Hauptmann" <[EMAIL PROTECTED] > wrote: > > oh, got it Frederick, > > To be more self sufficient, how would I be able to confirm for myself > exactly what the Rails controller framework is looking for when it's > trying to create models out

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Greg Hauptmann
oh, got it Frederick, To be more self sufficient, how would I be able to confirm for myself exactly what the Rails controller framework is looking for when it's trying to create models out of the param's it gets (i.e. behind the scenes before it gets to your code)? If I had a way of confirming t

[Rails] Re: A question about rails view code

2008-11-23 Thread Frederick Cheung
Sent from my iPhone On 23 Nov 2008, at 12:06, Zhao Yi <[EMAIL PROTECTED]> wrote: > > I am new to rails. I read some examples and don't understand rails erb > syntax. There is a piece of code I am not familiar: > > <% form_for(@bay_info) do |f| %> > <%= f.error_messages %> > f is a form buil

[Rails] Re: mislav-will_paginate and acts_as_taggable_on_steorids problem

2008-11-23 Thread Frederick Cheung
On 23 Nov 2008, at 11:43, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: > > > Am 23.11.2008 um 12:10 schrieb Frederick Cheung: > >> >> >> >> On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: >>> I always get the following problem: >>> >>> Loading development environment (Rails 2.2.

[Rails] A question about rails view code

2008-11-23 Thread Zhao Yi
I am new to rails. I read some examples and don't understand rails erb syntax. There is a piece of code I am not familiar: <% form_for(@bay_info) do |f| %> <%= f.error_messages %> <%= f.label :HostName %> <%= f.text_field :HostName %> ... I wander what f mean. What is its type?

[Rails] Re: mislav-will_paginate and acts_as_taggable_on_steorids problem

2008-11-23 Thread Jochen Kaechelin
Am 23.11.2008 um 12:10 schrieb Frederick Cheung: > > > > On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: >> I always get the following problem: >> >> Loading development environment (Rails 2.2.2) >> p = Frontpage.find 1 >> > Do you have your own class called Tag? class Frontpag

[Rails] Re: How can I set default value for each column in a Database?

2008-11-23 Thread Frederick Cheung
On Nov 23, 11:11 am, Zhao Yi <[EMAIL PROTECTED]> wrote: > I know I can set it on add_column command but I am looking for a way to > set the default when creating the Table. See below code, how can I set > each of them a default value. > http://api.rubyonrails.com/classes/ActiveRecord/ConnectionA

[Rails] How can I set default value for each column in a Database?

2008-11-23 Thread Zhao Yi
I know I can set it on add_column command but I am looking for a way to set the default when creating the Table. See below code, how can I set each of them a default value. def self.up create_table :bay_infos, :primary_key => :IP do |t| t.string :HostName t.string :IP t.stri

[Rails] Re: mislav-will_paginate and acts_as_taggable_on_steorids problem

2008-11-23 Thread Frederick Cheung
On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote: > I always get the following problem: > > Loading development environment (Rails 2.2.2) >> p = Frontpage.find 1 > Do you have your own class called Tag? Fred --~--~-~--~~~---~--~~ You received this

[Rails] Re: "syntax error, unexpected tIDENTIFIER , expecting kEND" in RJS response

2008-11-23 Thread jawosis
Ok - thanks a lot for your advice Fred! I checked my line endings with another editor and in fact found some unwanted whitespaces. Now everything works fine! On 22 Nov., 23:12, Frederick Cheung <[EMAIL PROTECTED]> wrote: > On Nov 22, 10:01 pm, jawosis <[EMAIL PROTECTED]> wrote: > > > Hi Fred,

[Rails] Re: Switching the version of Rails that an app uses

2008-11-23 Thread Frederick Cheung
On Nov 23, 12:50 am, RichardOnRails <[EMAIL PROTECTED]> wrote: > Hi again, Fred, > > I just started reading RubyGems Manuals using the URL you provided. > That's stuff I should have learned a long time ago.  Thanks for > showing me how to get up to speed on RubyGems. > No problem. Just to sanity

[Rails] Can't remove gem

2008-11-23 Thread Rong
OK, so someone has figured out that Merb is breaking Rails 2.2.2. There is a gem called do_sqlite3 which is in conflict with rails. But when I try to do an uninstall, rubygems says that the gem isn't there but when I do gem list I can see it. How do I get rid of it? --~--~-~--~~--

[Rails] Click this one U've a lot of opportunity

2008-11-23 Thread tamil
Click this one U've a lot of opportunity Click this one U've a lot of opportunity http://www.AWSurveys.com/HomeMain.cfm?RefID=willam Click this one U've a lot of opportunity http://www.AWSurv

[Rails] Re: what's wrong with this code? (hitting my head against a wall)

2008-11-23 Thread Frederick Cheung
On Nov 23, 7:21 am, "Greg Hauptmann" <[EMAIL PROTECTED]> wrote: > PS.  Actually I've just seen in this RailsCasts episode that Ryan > seems to have a nested model controller that does translate the parent > & child model data from the form to parent model and its association > (child model).  Am

[Rails] Re: authenticity_token sent, still InvalidAuthenticityToken

2008-11-23 Thread Peter De Berdt
On 23 Nov 2008, at 10:34, Anjan Tek wrote: > Would your solution above work for Flex apps as well? I'm using no > AJAX. > Just Flex and rails. Even the upload is done from within Flex. > > As I've mentioned previously in the post, I am sending the > authenticity > token along with all my requ

[Rails] rename public/images

2008-11-23 Thread Michael ..
Is it possible to rename the images folder. Thanks Michael -- 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] Re: authenticity_token sent, still InvalidAuthenticityToken

2008-11-23 Thread Anjan Tek
Hi! Would your solution above work for Flex apps as well? I'm using no AJAX. Just Flex and rails. Even the upload is done from within Flex. As I've mentioned previously in the post, I am sending the authenticity token along with all my requests to rails. But the problem is that the authentici

[Rails] Re: Accessing a file with normal Ruby IO fails. Security issue of what?

2008-11-23 Thread Rick
Richard, What you want is: csv_data_dir = RAILS_ROOT + "/public/data/csv" Rick On Nov 22, 3:37 pm, RichardOnRails <[EMAIL PROTECTED]> wrote: > Hi, > > I'm developing a small  Rails 2.2.0 app.  I have a slightly modified > scaffold-generated file, > PayrollSys\app\controllers\cvs_items_controll

[Rails] Re: Switching the version of Rails that an app uses

2008-11-23 Thread Rick
Hello Richard, I'm voting that you should, when convenient, take a look at the NetBeans IDE. It does have a startup cost - installation is easy but it's a feature rich tool with lots of buttons to learn how to push. It does support multiple RoR environments and each Rails app can be fairly easil

[Rails] Re: Email attachment corrupted

2008-11-23 Thread Hammer Ting
Found the solutions: 1) For the error where the email body was not received by the recipient, it was because of the naming of the view file has the wrong extension. I had to changed it to "email_friend.erb", instead of "email_friend.html.erb. 2) As for the corrupted image file, it was because

  1   2   >