[Rails] act as commentable

2010-06-20 Thread samprose
hi, anyone help for act as commentable with option for replying a comment or nested set of pluins. plz help imm. -- 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

[Rails] Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]

2010-06-20 Thread Anthony Green
I'm having the same issue and installed gems without user sudo. Fernando Brito wrote: Looking at your error gcc -I. -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0 Do you see that there are 2 ruby versions there? RVM suggests you to always install gems

[Rails] Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]

2010-06-20 Thread Anthony Green
Anthony Green wrote: I'm having the same issue and installed gems without user sudo. Fernando Brito wrote: Looking at your error gcc -I. -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0 Do you see that there are 2 ruby versions there? RVM suggests you

[Rails] Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]

2010-06-20 Thread Anthony Green
More digging and the answer is to install monrel pre-release gem install mongrel --pre Anthony Green wrote: Anthony Green wrote: I'm having the same issue and installed gems without user sudo. Fernando Brito wrote: Looking at your error gcc -I.

[Rails] Re: Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1

2010-06-20 Thread Fernando Perez
I installed ruby 1.9.1 with the 1.9 suffix, and I think ./script/server is confused and is trying to run the old ruby stuff that ships with OSX. Does it mean I have to reinstall everything from scratch with the +nosuffix flag? Thanks I confirm I needed to reinstall ruby with +nosuffix.

[Rails] Debugging a Rails 3 app with RadRails 2?

2010-06-20 Thread Michael Schuerig
When trying to debug a Rails 3 app with RadRails 2.0.4, I'm running into a problem with gem loading, apparently. See below for a stack trace. That problem disappears, when I move Gemfile out of the way, but, of course, then other necessary gems aren't loaded. From my Debug Configuration

[Rails] ActionPack framework

2010-06-20 Thread Abder-rahman Ali
What is the ActionPack framework? And, a thing that really confuses me a bit is: What do we mean by an application framework? And, is Rails considered a web application framework? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Make just one restful action singular

2010-06-20 Thread Utsav Gupta
Can we make just one restful action singular? Here's my situation. I have a user model. Hence: [code] ActionController::Routing::Routes.draw do |map| ... map.resources :users ... end [/code] But now the problem is whenever a user wants to edit his profile the corresponding path for this

[Rails] Re: Make just one restful action singular

2010-06-20 Thread Marnen Laibow-Koser
Utsav Gupta wrote: Can we make just one restful action singular? Here's my situation. I have a user model. Hence: [code] ActionController::Routing::Routes.draw do |map| ... map.resources :users ... end [/code] But now the problem is whenever a user wants to edit his profile

[Rails] Re: gitignore

2010-06-20 Thread Marnen Laibow-Koser
giorgio wrote: I have just started using rad rails again after a long stint on netbeans. Why? That's going from bad to worse. NetBeans: excellent IDE, too heavy for Rails Aptana: less good IDE, *still* too heavy for Rails Just forget about IDEs and use a good editor such as KomodoEdit.

[Rails] Problem with testing rails applications..

2010-06-20 Thread Joe
Hi, Recently I've been trying to add permalinks to my rails system, so because I had my new OS just installed I installed ruby and rails and all of the things I had before.. Then I downloaded my application files directly from the web, and attempted to run the server; when I visit it in my

[Rails] [help ask] WYSIWYG for rails3 beta 4

2010-06-20 Thread anton effendi
Hiii GUys.. any body help me?? could u all tell me WYSIWYG for rails3 beta 4?? Thank you. -- Senior Rails Developer Anton Effendi - Wu You Duan -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

Re: [Rails] Problem with testing rails applications..

2010-06-20 Thread Conrad Taylor
Sent from my iPhone On Jun 20, 2010, at 9:42 AM, Joe j...@dev-hq.co.uk wrote: Hi, Recently I've been trying to add permalinks to my rails system, so because I had my new OS just installed I installed ruby and rails and all of the things I had before.. Then I downloaded my application files

Re: [Rails] Re: Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1

2010-06-20 Thread Conrad Taylor
Sent from my iPhone On Jun 20, 2010, at 4:50 AM, Fernando Perez li...@ruby-forum.com wrote: I installed ruby 1.9.1 with the 1.9 suffix, and I think ./script/ server is confused and is trying to run the old ruby stuff that ships with OSX. Does it mean I have to reinstall everything

[Rails] Google Charts question.

2010-06-20 Thread UA
Hello I am trying out Google Charts for the first time. There is a rectangular container to the Chart and then the Chart itself inside. There is a lot of space wasted in some kind of padding within the actual chart and the container. I tried playing around with width and height parameters still

[Rails] Re: Google Charts question.

2010-06-20 Thread Marnen Laibow-Koser
Ritvvij Parrikh wrote: Hello I am trying out Google Charts for the first time. There is a rectangular container to the Chart and then the Chart itself inside. There is a lot of space wasted in some kind of padding within the actual chart and the container. I tried playing around with

[Rails] Re: Google Charts question.

2010-06-20 Thread UA
Ok... i was doing it in Rails.. though. thanks. On Jun 20, 1:00 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Ritvvij Parrikh wrote: Hello I am trying out Google Charts for the first time. There is a rectangular container to the Chart and then the Chart itself inside. There is a

[Rails] Re: Problem with testing rails applications..

2010-06-20 Thread Joe
When trying gem install sqlite3-ruby; it spits out no definition for libversion. And when trying to rake gems:install it seems to think that everything is absolutely fine. Please note although I dont think it'll make a difference I get this on starting the application:

[Rails] Re: Problem with testing rails applications..

2010-06-20 Thread Joe
When trying gem install sqlite3-ruby; it spits out no definition for libversion. And when trying to rake gems:install it seems to think that everything is absolutely fine. Please note although I dont think it'll make a difference I get this on starting the application:

[Rails] Self Reference, Almost There (I Hope!)

2010-06-20 Thread Michael Satterwhite
I'm still struggling with the self reference. I *THINK* I'm getting close. I have the following tables: class CreateCategories ActiveRecord::Migration def self.up create_table :categories do |t| t.string :name, :limit = 40 t.timestamps end end end class CreateRelationships

Re: [Rails] Self Reference, Almost There (I Hope!)

2010-06-20 Thread Michael Pavling
On 20 June 2010 19:12, Michael Satterwhite li...@ruby-forum.com wrote: class CreateRelationships ActiveRecord::Migration  def self.up    create_table :relationships, :id = false do |t|    t.integer :category_id    t.integer :parent_id    t.integer :sort_order      t.timestamps    end  

[Rails] Re: gitignore

2010-06-20 Thread Agoofin
I like the IDE approach overall. Netbeans has some nice autocomplete features that really help in writing the code, but then again a simple editor can work well too. For the gitignore, just add a pattern of which files you don't want included either in the root directory or in the specific

Re: [Rails] gitignore

2010-06-20 Thread Rory McKinley
On 20/06/2010 07:44, giorgio wrote: I have just started using rad rails again after a long stint on netbeans. It seems to generate loads of files like: app/views/group/.tmp_group_summary.rhtml.99932 I want to make git ignore all these .tmp files but my entries in gitignore have so far been of

Re: [Rails] Re: Make just one restful action singular

2010-06-20 Thread Rory McKinley
On 20/06/2010 17:18, Marnen Laibow-Koser wrote: snip /users/edit would seem like it's supposed to edit *all* users. You probably want something like /user/edit . snip Sorry, going to commit the sin of not answering your question directly :) Would an approach such as this not make your

Re: [Rails] Re: Why do rails calls a method when I'm calling a property?

2010-06-20 Thread Rory McKinley
On 20/06/2010 01:08, Omar Renteria wrote: But it exists...in deed when I try the same param in rails console the object is found. snip Are both cases (console and code running on server) running under the same environment? E.g. development vs production -- You received this message because

[Rails] Re: Problem with testing rails applications..

2010-06-20 Thread Agoofin
Seems others are having this issue on Windows as well. Try here for some direction: http://groups.google.com/group/rubyinstaller/browse_thread/thread/bd7ec8e1dab4ff17 Hope this helps On Jun 20, 2:11 pm, Joe j...@dev-hq.co.uk wrote: When trying gem install sqlite3-ruby; it spits out no

[Rails] Re: Re: Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1

2010-06-20 Thread Fernando Perez
If you're using Rails 3, it is recommended that you use Ruby 1.9.2. If this is the case, then you might want to use RVM for installing Ruby by doing the following: rvm install 1.9.2- head Good luck, -Conrad I'm still running 2.3.8 until 3 goes official. I'll give a try at RVM. By the

[Rails] Re: Re: Make just one restful action singular

2010-06-20 Thread Marnen Laibow-Koser
Rory McKinley wrote: On 20/06/2010 17:18, Marnen Laibow-Koser wrote: snip /users/edit would seem like it's supposed to edit *all* users. You probably want something like /user/edit . snip Sorry, going to commit the sin of not answering your question directly :) Would an approach such

Re: [Rails] Re: Re: Using MacPorts To Install Ruby 1.9.1 and Rails 2.3.0 RC1

2010-06-20 Thread Conrad Taylor
On Sun, Jun 20, 2010 at 11:54 AM, Fernando Perez li...@ruby-forum.comwrote: If you're using Rails 3, it is recommended that you use Ruby 1.9.2. If this is the case, then you might want to use RVM for installing Ruby by doing the following: rvm install 1.9.2- head Good luck,

Re: [Rails] Re: Re: Make just one restful action singular

2010-06-20 Thread Rory McKinley
On 20/06/2010 20:59, Marnen Laibow-Koser wrote: snip Wrong. If that were so, map.resource wouldn't exist. snip I think I explained myself badly - I am not arguing that you cannot do it - but I was stating that for a consumer of the user/edit resource - the consumer needs to know internal

[Rails] Re: Why do rails calls a method when I'm calling a property?

2010-06-20 Thread Agoofin
Look at your link_to in the index.html, it should contain the id for the story you want to show. Also, check to make sure that you have the to_param method in your model, story.db and that it's correct. The author implements a complicated beautification of the urls which is a waste in the course

[Rails] Multiple has_one to same table

2010-06-20 Thread dkmdnielsen
Your input/experience appreciated. I have noticed multiple discussions regarding husband and wife. But none really end in a this is a the best way to handle things. Here is my situation. I'm recording information on couples -- husband and wife, one of each. If the two are no longer married,

[Rails] n00b question: 'Having troubles with map.namespace :admin'

2010-06-20 Thread Sebastian
Hi everyone! Im having troubles with my routes.rb, i set map.namespace :admin so i can enter to my scaffold 'contacts' via admin/contacts', but the view its crashing showing this error:; *undefined method `contact_path' for #ActionView::Base:0xb6743be4* The question is: 'where is *contact_path*

[Rails] Re: Make just one restful action singular

2010-06-20 Thread Agoofin
Can't you declare the resource in the singular form? http://api.rubyonrails.org/classes/ActionController/Resources.html#M000308 On Jun 20, 3:12 pm, Rory McKinley rorymckinleyli...@gmail.com wrote: On 20/06/2010 20:59, Marnen Laibow-Koser wrote: snip Wrong.  If that were so, map.resource

Re: [Rails] Multiple has_one to same table

2010-06-20 Thread Michael Pavling
On 20 June 2010 20:05, dkmdnielsen donvniel...@gmail.com wrote: Your input/experience appreciated.  I have noticed multiple discussions regarding husband and wife.  But none really end in a this is a the best way to handle things. http://qntm.org/gay Of course, you can stop at level 7 or 8 if

[Rails] find in controller or view

2010-06-20 Thread Norm Scherer
I have an app that does a number of collection_selects. There are two general methods of getting the data and displaying it that I am aware of. You can do a find in the controller and assign the result to an instance variable and do the collection_select stuff in the view. Alternatively you

[Rails] Error for update model with attachment_fu without file

2010-06-20 Thread Marcelo Junior
class AlbumSong ActiveRecord::Base MAX_SIZE_IN_MB = 10 has_attachment :content_type = 'audio/mp3', :storage = :s3, :max_size = MAX_SIZE_IN_MB.megabytes acts_as_indexed :fields = [:title, :author], :index_file = [Rails.root.to_s, tmp, index] belongs_to :album

[Rails] ActiveRecord and ARel: correlated subqueries?

2010-06-20 Thread Michael Schuerig
I'm trying to figure out how to use ActiveRecord in conjunction with ARel. In particular, I'd like to replace my residual literal SQL with ARel, if only I could see how. Let's take Article with multiple Versions as an example. With ARel alone, I can find articles with their latest versions

[Rails] NoMethodError in StoreController#add_to_cart - getting nil

2010-06-20 Thread Manuel Manuel
Hey everybody, I am currently following the depot application from the book Web Agile Development with Rails (3rd Edition) but after creating the controller for the Store and the Cart model, I am always getting a nil product, no matter how many products I add to the database. I am very new with

[Rails] Re: Google Charts question.

2010-06-20 Thread PsiPro
You doing this all by hand? or using http://code.google.com/p/google-charts-on-rails/ or something comparable? On Jun 20, 2:04 pm, UA ritvi...@gmail.com wrote: Ok... i was doing it in Rails.. though. thanks. On Jun 20, 1:00 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: Ritvvij

[Rails] Re: NoMethodError in StoreController#add_to_cart - getting nil

2010-06-20 Thread Manuel Manuel
Manuel Manuel wrote: Hey everybody, I am currently following the depot application from the book Web Agile Development with Rails (3rd Edition) but after creating the controller for the Store and the Cart model, I am always getting a nil product, no matter how many products I add to the

[Rails] Re: Pleas Help Me regarding rake db:migrate

2010-06-20 Thread Tam Huynh
Haribhau Ingale hari31...@... writes: I mean delete books table manually from Database if you don't have two migration files creating books table. On Sat, May 29, 2010 at 3:49 PM, Haribhau Ingale hari31...@gmail.com wrote:Hi,  Can you just check once again that you don't have two migration

[Rails] Re: tabular view gem in script/console

2010-06-20 Thread Chamnap
Hi, Thanks for your help. Chamnap On Jun 17, 8:53 pm, Leonardo Mateo leonardoma...@gmail.com wrote: On Thu, Jun 17, 2010 at 12:30 AM, Chamnap chamnapchh...@gmail.com wrote: I remember there is a gem on github that is able to display tabular view like mysql console in script/console. Anyone

[Rails] error when calling to_sql (Rails 3 beta 4, 1.9.2-head)

2010-06-20 Thread Matt Slay
I'm testing Rails 3 beta 4 on Ruby 1.9.2-head, and when I start a console and do: Game.first.to_sql I get this error: ArgumentError: wrong number of arguments (0 for 1) I know it can find the Game record, because when I type: Game.first it returns: = #Game id: 1, name: Galaga,

[Rails] Gem/plugin for AJAX advance search (multiple params)

2010-06-20 Thread Fernando Brito
Hello, Does someone know a Gem or a plugin that can help me building something like this advance search: http://demo.neeraj.name/admin_data/advance_search/user? I like it because it knows if it is an integer field or string field and automatically fill the select field with the correct options