[Rails] How to Pass a Selected Option Value of select_tag from One Partial to Another

2010-10-18 Thread Hoca
Hi, I'm running Rails 2.3.5 Ruby 1.8.7 on Windows XP. I have two partials: 1. File app\views\warehousing\_index.html.erb has . %= select_tag(:filter_by_category, option-Select a category- /option + options_from_collection_for_select(Categories.find(:all, :order = 'name'),

[Rails] Startup Seeking ROR mentor/partner

2010-10-18 Thread David K
We are a small team of three individuals based in South East Asia (Indonesia/Singapore), developing a unique Asian focused multi- language web application using what we believe to be a unique and viable business model. Whilst two of us have extensive programming experience we are new to Ruby on

[Rails] Re: Techlive - IT War Room in The Cloud

2010-10-18 Thread TechLive Admin
Hi Joshua, thanks for the kind words. What kind of bug tracking system do you use? Let me know and perhaps we can give you an api or something easy to build to let you escalate problems to the TechLive queue for a war room session! Will do what we can. Have been using a lot of community stuff to

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread eventhough
Steve, were you able to find a solution for this? I am dealing with the same exact error. It says rake-0.8.7 installed fine but I get an error that it can't find the executable. Thanks, Kevin On Oct 3, 1:32 pm, Steve Mills li...@ruby-forum.com wrote: OK. I checked these things. gem

[Rails] Routing error for custom POST route in Rails 3

2010-10-18 Thread atotic
I've been banging my head against this for a while, and would love to see someone prove that I am just overlooking something simple. I am trying to add a custom route to my RESTful resource. Because route is destructive, I want to use POST http method. If I hack my routes.rb to use GET,

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread bingo bob
Thanks for this. I'm about to try and implement it, appreciate this is a little OT, but has anyone got any more tips for me or even a quick example. Just to be clear, I'm using passenger - will that get in the way or also need any configuration? -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] Re: activerecord variable apart from member

2010-10-18 Thread Colin Law
On 18 October 2010 04:38, Marnen Laibow-Koser li...@ruby-forum.com wrote: Rahul J. wrote in post #954924: [...] Also i am not preffering associations to get the complete user field, as its not being needed. Then you are most likely being stupid. I think that is a bit harsh Marnen, one can

[Rails] HTTP Response 302 fetching

2010-10-18 Thread Ainar Abramovich
Hi, I am moving to mac os x 10.5.6 and wanted to update rails from Rails 1.2.6 to something higher, so I typed in my terminal sudo gem update --system it just doesn't seem to work. Always when I try to update in terminal it gives me out this error :ERROR: While executing gem ...

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread bingo bob
Someone's suggested that actually using virtual hosts maybe a better way for me to do this? Thoughts? -- 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: Re: ActiveRecord::Relation issue

2010-10-18 Thread Max Reznichenko
Luke Cowell wrote in post #954803: At the end of the day, the most important thing is that it works. However, I think we should try to get the database do the work. I'll apologize in advance that this example is rails2. # Project - TaskList - Task Project.all(:group = projects.id, :joins =

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
Hi Kevin. In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the problem went away. Kind Regards Steve -- 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] How to create a like button

2010-10-18 Thread Christian Fazzini
Ive got a like and video model. On a Video page, Users can click a link (like) button which will allow them to like a particular video. Since my like button/image comes in the form of a link and not an actual html form. How should this be implemented? Do I need to specify a :method = puts in my

Re: [Rails] How to create a like button

2010-10-18 Thread Brett Thomas
AJAX - set the onClick property to point to a function that sends the request to the server. On Mon, Oct 18, 2010 at 7:25 AM, Christian Fazzini christian.fazz...@gmail.com wrote: Ive got a like and video model. On a Video page, Users can click a link (like) button which will allow them to

[Rails] Re: How to create a like button

2010-10-18 Thread Christian Fazzini
Ajax is how I am definitely going to implement this with. However, I need to how to do this without js first. On Oct 18, 7:31 pm, Brett Thomas brettptho...@gmail.com wrote: AJAX - set the onClick property to point to a function that sends the request to the server. On Mon, Oct 18, 2010 at

[Rails] Re: How to create a like button

2010-10-18 Thread Christian Fazzini
Is it possible for a link to point to the 'create' method of a controller, passing the necessary values/attributes ? Or is the only way to do such a thing, through an html form (via post)? On Oct 18, 7:42 pm, Christian Fazzini christian.fazz...@gmail.com wrote: Ajax is how I am definitely going

[Rails] Re: Formatting Names and Addresses

2010-10-18 Thread tonypm
Would the Snail gem help? Thanks Marnen, looks like it may be of use, or at least a starting point. I'll play with it and see Thanks Tonypm -- 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: How to create a like button

2010-10-18 Thread Tim Shaffer
Assuming you have the following models: User, Video, Like. If a Like instance belongs to a video and a user. You could use nested routes in the following format: resources :video do resource :like end Which gives you the following URLS: /videos/1/like /videos/1/like/1 So then using the

[Rails] Searching in database.

2010-10-18 Thread Rohan Deshpande
I am new to ROR... I want to search in database using user input.. I am using sqlite database. Can anyone guide me? so far I have done following in model.. I am going in correct way? Photo_search.rb def self.search(query) if !query.to_s.strip.empty? find_by_sql([select p.* from photos

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread Luis Saffie
Yeah, for this setup it's recommended to use virtual hosts along with modrewrite So for example you'd have your site like this defined in your apache.conf VirtualHost *:80 ServerName www.chalet-yeti.com RewriteEngine on RewriteRule ^(.*)$ http://localhost:3000/properties/1/$1 [R]

[Rails] How to run the application Rubyonrails's on the server (localhost)

2010-10-18 Thread amritpal pathak
i have download the source code of OpenStreetview.org ,this is a rubyonrails applcation.but i dont know how to run it on my computer. i have installed ruby,rails,apache,mysql(Just install) Besides this i know nothing. please somebody help how to run the rubyonrails applcation at server at own

[Rails] Re: Searching in database.

2010-10-18 Thread Robert Walker
Rohan Deshpande wrote in post #955103: Photo_search.rb def self.search(query) if !query.to_s.strip.empty? find_by_sql([select p.* from photos where #{ ([(lower(p.title) like ? or lower(p.description) like ?)] * tokens.size). else [] end end Try to find a more

Re: [Rails] How to run the application Rubyonrails's on the server (localhost)

2010-10-18 Thread Amit Kumar
Hi, If you have created your app then got to your rails directory and run script/server If app is not craeted then run rails demo, it will create a rails app named with demo On 18 October 2010 19:06, amritpal pathak amritpalpath...@gmail.com wrote: i have download the source code of

[Rails] Re: Searching in database.

2010-10-18 Thread Rohan Deshpande
Try to find a more direct approach to your search features. You should reserve find_by_sql as an absolute last resort. Rails provides an extensive and power query language and the Rails community has provided some really nice gems to help with more complex searches: It might also be useful

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread Frederick Cheung
On Oct 18, 2:43 pm, bingo bob li...@ruby-forum.com wrote: Hi Luis, Thanks for this, I'm getting *really* close I think. That looks fine and I've tried - the redirects are taking effect but it's not quite right. The localhost:3000 part was just on my Mac, now I'm on the server I need to

Re: [Rails] How to run the application Rubyonrails's on the server (localhost)

2010-10-18 Thread Amit Kumar
Also, before running command script/server, run rake db:migrate in demo directory path to populate the DB but you need to create teh db first if using Mysql or Postgresql. On 18 October 2010 19:17, Amit Kumar amitbar...@gmail.com wrote: Hi, If you have created your app then got to your

[Rails] Re: Searching in database.

2010-10-18 Thread Rohan Deshpande
I am new to ROR.. still learning it.. thanks for ur help.. I will search for appropriate gems. -- 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: multiple domain names mapping to different rails app URLs

2010-10-18 Thread Luis Saffie
As Fred metioned. Looks like there's two rewrites here. Only needs to be done from the Apache side and the other from rails (routes.rb) I suggest you get the apache site going before attempting the other rewrite. Luis -- http://www.saffie.ca -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: Searching in database.

2010-10-18 Thread Robert Walker
Rohan Deshpande wrote in post #955115: I am new to ROR.. still learning it.. thanks for ur help.. I will search for appropriate gems. I hope I was clear that my reply was intended to help and not be a criticism. I highly recommend that you read through the Rails guides that I linked earlier.

Re: [Rails] Re: Newbe: rails version issue

2010-10-18 Thread jason white
If you are going to develop in Rails3, I don't think Ruby 1.9.1 is compatible Jason On Mon, Oct 18, 2010 at 6:06 AM, Steve Mills li...@ruby-forum.com wrote: Hi Kevin. In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the problem went away. Kind Regards Steve --

[Rails] Rails 3 - is it possible not to display the attribute name in the error message ?

2010-10-18 Thread Erwin
when displayed using - target.errors.full_messages.each do |msg %li= msg I get obviously displayed : 3 errors Email can't be blank Password can't be blank Agreement status : You must acknowledge that you agree to our Terms of Use and Privacy Policy and hat you are over 14 years old.

[Rails] Best practice organization of rails directories

2010-10-18 Thread Pito Salas
I have a few outlier cases of ruby files used by my rails app and am trying to decide where to put them. 1. Models that are not ActiveRecord models. Suggestion: app/models 2. Utility classes which are invoked by the application during normal operation. Not sure between app/utility - on the

Re: [Rails] ActiveRecord - how to search by association value?

2010-10-18 Thread Nikolai Teleguine
Erol, Thank you for the reply. This will work, but is there a way to do this search without adding another association? I am just trying to learn the capabilities of ActiveRecord. Let me re-state the problem: I either already have the parent object, or know enough of it's attributes to find the

[Rails] Re: Re: activerecord variable apart from member

2010-10-18 Thread Marnen Laibow-Koser
Colin Law wrote in post #955070: On 18 October 2010 04:38, Marnen Laibow-Koser li...@ruby-forum.com wrote: Rahul J. wrote in post #954924: [...] Also i am not preffering associations to get the complete user field, as its not being needed. Then you are most likely being stupid. I think

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Marnen Laibow-Koser
Steve Mills wrote in post #955083: Hi Kevin. In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the problem went away. Kind Regards Steve Bad idea. Ruby 1.9.1 is not supposed to work reliably with Rails. Use 1.9.2 or 1.8.7. Best, -- Marnen Laibow-Koser

[Rails] Re: rails console and tests launch time too long?

2010-10-18 Thread Robert Walker
Michal Burak wrote in post #954952: The speed is the same with or without RadRails. What operating system are you using? I have heard this complaint many times with certain Windows versions (may all versions). If you're on some form of UNIX/Linux based system then your problem is likely

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread bingo bob
totally lost. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: RSpec

2010-10-18 Thread Robert Walker
Bhupendra Mishra wrote in post #954914: Please share tutorial/blog/documentation best ever any one find for RSpec. The best tutorial on RSpec Cucumber that I know of is: http://pragprog.com/titles/achbd/the-rspec-book Written by the people who created RSpec, with input from Dan North

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread Luis Saffie
Ok, let's back up a bit. For now just do the apache rewrite as I mentioned above. I think Fred is right that you need to use ^/$ rather than ^.*$ so your rule would look like RewriteRule ^/$ apartment-marie.com/properties/2/$1 [R] I think that's it. -- Posted via http://www.ruby-forum.com/.

[Rails] httparty vs mechanize

2010-10-18 Thread Alex Katebi
Are these two competing gems? Thanks! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread bingo bob
Thanks for bearing with me. That one didn't work - close but it gave me a double rendering of the apartment-marie.com bit, something like this... apartment-marie.com/apartment-marie.com/properties bla... so I edited like so (here's the real file and it's live if it helps).. This is much

[Rails] Re: rails 2.1.2 to rails 2.2.2 now I get mysql issues

2010-10-18 Thread Jason S.
+1 - copying from the instant rails download link to ruby/bin worked for me: Rails 3.0.1 Ruby 1.8.7 (and Ruby 1.9.2, works on both) MySQL 5.5 x64 Windows 7 x64 NetBeans IDE Thanks! Another Jason S. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread bingo bob
So taking it a step on I figure I need to work on a few things... need to make sure www versions all operate ok. need to make sure that when I add another domain, that works to. http://chaletcordee.co.uk/properties/1/comments should be http://chaletcordee.co.uk/comments guess this is the rails

[Rails] Re: Best practice organization of rails directories

2010-10-18 Thread Marnen Laibow-Koser
Pito Salas wrote in post #955126: I have a few outlier cases of ruby files used by my rails app and am trying to decide where to put them. 1. Models that are not ActiveRecord models. Suggestion: app/models There is a pernicious assumption among many Rails developers that models have to be

[Rails] Re: Re: ActiveRecord::Relation issue

2010-10-18 Thread Marnen Laibow-Koser
Colin Law wrote in post #954800: On 16 October 2010 13:47, Max Reznichenko li...@ruby-forum.com wrote: belongs_to :model_a #Model A definition has_many :model_b --has_many :model_c, :through = :model_b I have not tried it but can you then say has_many :model_d, :through - :model_c If

[Rails] Ruby Documentation

2010-10-18 Thread MDM
Although using ROR for a long time There is so much I do not know so forgive me if I am wrong. As I am re-writing my website for ROR 3.0, I went to ROR 3.0.1 documentation below to learn about Ajax:- http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html There it says to

[Rails] Re: Re: Re: undefined method + method(argument)

2010-10-18 Thread Marnen Laibow-Koser
Colin Law wrote in post #954895: On 17 October 2010 06:17, Evanoshki Brataslavainskinski li...@ruby-forum.com wrote: Luke Cowell wrote in post #954878: Did you try Michael's suggestion of adding this to your controller? helper_method :find_first_in_group This probably isn't the best

Re: [Rails] ActiveRecord - how to search by association value?

2010-10-18 Thread Erol Fornoles
You can use dynamic finders: Child.find_by_parent_id_and_name(parent.id, Timmy) But then again, if you already have the parent object, the common practice is to setup the children association and get the child using it: parent.children.find_by_name(Timmy) Which IMO is more readable than the

[Rails] Re: How to Pass a Selected Option Value of select_tag from One Partial to Another

2010-10-18 Thread Marnen Laibow-Koser
Hoca wrote in post #955056: Hi, I'm running Rails 2.3.5 Ruby 1.8.7 on Windows XP. Why on earth are you doing Rails development on Windows? At least get a *nix VM. I have two partials: 1. File app\views\warehousing\_index.html.erb has . %=

[Rails] Not able to override helper.

2010-10-18 Thread Christopher G.
I'm trying to upgrade an application to Rails 3 and I found a difference in the way helpers are loaded. I want to override a method based on the current controller but it now seems that all helpers are loaded. I've broken it down to a simple example. I have a test app with 2 controllers - books

[Rails] Re: Re: Appointment History template page

2010-10-18 Thread Leonel *.*
http://guides.rubyonrails.org/routing.html#adding-more-restful-actions Tried it, same error. On the controller I even tried... resources :appointments do get 'history' = :history end get appointments/history -- Posted via http://www.ruby-forum.com/. -- You received this message

Re: [Rails] Not able to override helper.

2010-10-18 Thread Erol Fornoles
That's because Rails 3 implies helper :all. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5348-visibility-of-helpers-seems-all-wrong On Mon, Oct 18, 2010 at 11:57 PM, Christopher G. li...@ruby-forum.comwrote: I'm trying to upgrade an application to Rails 3 and I found a

[Rails] Application Controller instance variable available to all views

2010-10-18 Thread Leonel *.*
Currently, I have this on the application controller... def company_name User.find_by_id(session[:user_id]).account.name end So then in each controller I have to add this, which is not very DRY. The @company_id needs to be used in almost every page and it's accessed on the

[Rails] Re: Appointment History template page

2010-10-18 Thread Leonel *.*
Got it, I think when I restarted the server, it didn't see the changes or something. ROUTES resources :appointments do collection do get 'history' = 'appointments#index' end end CONTROLLER def index if request.request_uri=='/appointments/history' #past

[Rails] Re: Application Controller instance variable available to all views

2010-10-18 Thread Marnen Laibow-Koser
Leonel *.* wrote in post #955167: Currently, I have this on the application controller... def company_name User.find_by_id(session[:user_id]).account.name end So then in each controller I have to add this, which is not very DRY. The @company_id needs to be used in almost every page

[Rails] Re: Appointment History template page

2010-10-18 Thread Leonel *.*
IMPROVED. -- ROUTES resources :appointments do collection do get 'history' = 'appointments#index' end end -- CONTROLLER def index if request.request_uri==history_appointments_path #past appointments

Re: [Rails] Application Controller instance variable available to all views

2010-10-18 Thread Colin Law
On 18 October 2010 17:24, Leonel *.* li...@ruby-forum.com wrote: Currently, I have this on the application controller...  def company_name    User.find_by_id(session[:user_id]).account.name  end So then in each controller I have to add this, which is not very DRY. The @company_id needs to

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread bingo bob
I'm half way there then? Need to handle the rest on the rails side - via my routes.rb file? Will this approach work? -- 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

[Rails] Re: Find account name

2010-10-18 Thread Leonel *.*
Still same error... APPLICATION CONTROLLER @company_id = company_id def company_id output_id = User.find_by_id(session[:user_id]).account.id end ERROR Routing Error undefined local variable or method `company_id' for ApplicationController:Class Why would it say the method is

[Rails] Re: httparty vs mechanize

2010-10-18 Thread Frederick Cheung
On Oct 18, 4:21 pm, Alex Katebi alex.kat...@gmail.com wrote: Are these two competing gems? They're different in my opinion. Httparty make making http requests nice, whereas mechanize is more about interacting with web pages (so it has a bunch of features to do with cookies, filling out forms

[Rails] Can't seem to get my HABTM form to work.

2010-10-18 Thread Patrick Curl
What I'm trying to do seems easy, but I've been trying to get it right for 3 days now, and am at my wits end. What I have: 2 tables + 1 join table. Subscribers, Cities, and Cities_Subscribers Form looks like this: TEXTBOX - EMAIL CHECKBOXES - CITIES SUBMIT My models are like so: class

[Rails] Rails 3 Development Servers - Is mongrel on its way out?

2010-10-18 Thread dbush
Hi folks, Because life happened I had to put down rails/web development for a while. I am starting a new project on rails 3 and noticed that mongrel isn't even included in the Gemfile which is required in order to get mongrel to load. What is the school of thought in rails 3 wrt to a

[Rails] Is Ruby on Rails for beginner programmers?

2010-10-18 Thread Etilyeti
Hello, I am not a programmer but I would like to learn and develop more complex websites than the ones I have done in the past. I will not learn for the pleasure of learning, but I will do it as I need to develop my website. I am pretty good with HTML, and I know a bit of PHP and MySQL. I was

[Rails] How to make an ActiveRecord::Base object to have a list of strings?

2010-10-18 Thread Gogov
Hi, I'm new to Rails and already did some stuff with ActiveRecord associations but I cannot do one thing: I've got a === class Paragraph ActiveRecord::Base end === And I want each Paragraph to contain a list of words (each word is simply a String). I want to have a table with all Paragraphs

[Rails] Re: Upgrading Rails With InstantRails

2010-10-18 Thread Hajer Mohammed
I want to upgrade rails version in InstantRails-2.0 also from 2.0.2 to rails 2.3.8 but I am facing problem. when I write this command in InstantRails console : D:\InstantRails\InstantRails-2.0-win\rails_appsgem update rails --include-dependencies It gives me this error. ERROR: While

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread Luis Saffie
yes, it should work. Look like you may need to add single resources along with the nested ones. Not entirely sure if you can do this though... Luis -- http://www.saffie.ca -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: Best practice organization of rails directories

2010-10-18 Thread Pito Salas
Marnen Laibow-Koser wrote in post #955146: Utility classes (that are not models) go in lib. I don't see what the utility directory inside there gains you; lib is already utilities. To me lib/ implies a library used by the application. not part of the application itself, which is why I

[Rails] Re: multiple domain names mapping to different rails app URLs

2010-10-18 Thread bingo bob
Anyone else comment as to if this combination of apache rewrites and rails routing will play nicely together. I'll try it of course just imagine that it may have been done before by somebody. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
Marnen Laibow-Koser wrote in post #955129: Bad idea. Ruby 1.9.1 is not supposed to work reliably with Rails. Use 1.9.2 or 1.8.7. 1.9.2 doesn't work. 1.8.7 is too old to work with the tools I'm using. So far 1.9.1 is working with no problems. Like the person before me, I tried to get help

[Rails] Re: Upgrade ROR 2.3.5 to 3.0

2010-10-18 Thread kiran
Conrad, I did look at below links somehow it's not working on windows platform. I think the plug-in is for MAC OS. Meantime do you have any high level comparasion, any other links or manual steps which I perform. May be that way it will help me to understand what exactly the plug-in is doing.

Re: [Rails] Re: Best practice organization of rails directories

2010-10-18 Thread David J. Hamilton
On Mon, Oct 18, 2010 at 10:25 AM, Pito Salas li...@ruby-forum.com wrote: Marnen Laibow-Koser wrote in post #955146: Utility classes (that are not models) go in lib.  I don't see what the utility directory inside there gains you; lib is already utilities. To me lib/ implies a library used by

[Rails] Re: Find account name

2010-10-18 Thread Marnen Laibow-Koser
Leonel *.* wrote in post #955184: Still same error... APPLICATION CONTROLLER @company_id = company_id def company_id output_id = User.find_by_id(session[:user_id]).account.id end ERROR Routing Error undefined local variable or method `company_id' for

[Rails] Re: Upgrading Rails With InstantRails

2010-10-18 Thread Marnen Laibow-Koser
Hajer Mohammed wrote in post #955190: I want to upgrade rails version in InstantRails-2.0 also from 2.0.2 to rails 2.3.8 but I am facing problem. when I write this command in InstantRails console : D:\InstantRails\InstantRails-2.0-win\rails_appsgem update rails --include-dependencies

[Rails] Re: Rails 3 Development Servers - Is mongrel on its way out?

2010-10-18 Thread Marnen Laibow-Koser
dbush wrote in post #955185: Hi folks, Because life happened I had to put down rails/web development for a while. I am starting a new project on rails 3 and noticed that mongrel isn't even included in the Gemfile which is required in order to get mongrel to load. What is the school of

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Marnen Laibow-Koser
Steve Mills wrote in post #955200: [...] There are patches available to fix it but the authors assume that we all know how to apply a patch whereas newbies like myself haven't a clue - yes we can download the patch, but we don't know how to apply it. Any hints? :) Learn how to apply a patch.

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
Marnen Laibow-Koser wrote in post #955209: Steve Mills wrote in post #955200: [...] If you can point me to a patch you've found, I may be able to be of more help. Thanks - I'm working both in Windows and Ubuntu - but Windows primarily because that's where my Development Environment is -

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
P.S. I should also have mentioned I'm working with RubyMine to learn how to build Rails web apps. -- 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: Newbe: rails version issue

2010-10-18 Thread Marnen Laibow-Koser
Steve Mills wrote in post #955213: Marnen Laibow-Koser wrote in post #955209: Steve Mills wrote in post #955200: [...] If you can point me to a patch you've found, I may be able to be of more help. Thanks - I'm working both in Windows and Ubuntu - but Windows primarily because that's where

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Marnen Laibow-Koser
Steve Mills wrote in post #955214: P.S. I should also have mentioned I'm working with RubyMine to learn how to build Rails web apps. Drop RubyMine, at least for now. You can go back to it later, but you should absolutely not be using an IDE for learning Rails. Just work with a good text

[Rails] Re: Is Ruby on Rails for beginner programmers?

2010-10-18 Thread Marnen Laibow-Koser
Etilyeti wrote in post #955186: Hello, I am not a programmer but I would like to learn and develop more complex websites than the ones I have done in the past. I will not learn for the pleasure of learning, but I will do it as I need to develop my website. I am pretty good with HTML, and I

Re: [Rails] Re: Is Ruby on Rails for beginner programmers?

2010-10-18 Thread Greg Donald
On Mon, Oct 18, 2010 at 1:54 PM, Marnen Laibow-Koser li...@ruby-forum.com wrote: Rails isn't a language. I consider Rails to be a domain specific language. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
The content was... diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 266d717..0e9f39a 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next version =

[Rails] Re: Re: Is Ruby on Rails for beginner programmers?

2010-10-18 Thread Marnen Laibow-Koser
Greg Donald wrote in post #955221: On Mon, Oct 18, 2010 at 1:54 PM, Marnen Laibow-Koser li...@ruby-forum.com wrote: Rails isn't a language. I consider Rails to be a domain specific language. Parts of it are, but I think it's limiting to consider the entire framework to be. At least the way

[Rails] Re: Find account name

2010-10-18 Thread Leonel *.*
I tried to simplify to find the root of the problem, but this doesn't work either! APPLICATION CONTROLLER @company_id = 1; VIEW %= @company_id % returns nothing -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Marnen Laibow-Koser
Steve Mills wrote in post #955220: The content was... diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 266d717..0e9f39a 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do version = open(src) {|f| f.find {|s|

[Rails] Re: Upgrading Rails With InstantRails

2010-10-18 Thread Hajer Mohammed
Any Help ? Are you behind a firewall or proxy? It looks like it can't get to the gem server... No, I switched off the firewall, this problem appeared to me once, and I have solved by the following 1- I downloaded RubyGems again from this link http://rubyonrails.org/download 2- Then I

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
Unfortunately, I'm such a newbie to this, I don't have git, don't see why I need it when I use subversion for version control, and it doesn't get automatically installed with Ruby. The information that led me to this patch was Ruby's inability to recognise that Rake 0.8.7 had been installed.

[Rails] Re: Find account name

2010-10-18 Thread Leonel *.*
You need to gain a better understanding of what belongs to the class and what belongs to the instance. True, will do. Although I found a different solution. APPLICATION HELPER def company_id User.find_by_id(session[:user_id]).account.id end -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Marnen Laibow-Koser
Steve Mills wrote in post #955228: Unfortunately, I'm such a newbie to this, I don't have git, Then get it. don't see why I need it when I use subversion for version control, Because it's a better VCS than Subversion is. Subversion uses a less powerful paradigm (centralized, whereas Git is

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Marnen Laibow-Koser
[Repost of something that apparently got eaten.] Marnen Laibow-Koser wrote in post #955224: Steve Mills wrote in post #955220: The content was... diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 266d717..0e9f39a 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -515,7

[Rails] Re: send_file Rails3, Ruby 1.9.2

2010-10-18 Thread Smashing
in case someone else has similar problems, the code that I got working is: downloading: -- controller: datafiles_controller def download @datafile = Datafile.find(params[:id]) send_file('/var/www/pub.website.com/file_uploads/'+

[Rails] Re: Newbe: rails version issue

2010-10-18 Thread Steve Mills
Hi Marnen. I'm never combative or hostile - that's not my nature. However, when I've got a huge investment in one tool, I need to be convinced before switching horses because it always results in a lot of work to effectively get to where I already was with my favoured tool, and my time is

[Rails] wrong link_to html output

2010-10-18 Thread Jule Nissen
I've just upgraded from rails 2 to 3 and got some problems with the link_to method! A line like this: %= link_to Lab, :action = :showlab, :remote = true % creates a html link like this: a href=controller/showlab?remote=trueLab/a and not like this: a href=controller/showlab

[Rails] Re: wrong link_to html output

2010-10-18 Thread Tim Shaffer
Is there anything wrong with the link_to syntax/line? Yes. The link_to method has the following signatures: link_to(body, url_options = {}, html_options = {}) link_to(body, url, html_options = {}) When you specify it like you have, Ruby thinks both :action and :remote are part of the

[Rails] Cannot load JSON in Rails 3

2010-10-18 Thread Albus Dumbledore
I am converting my app from Rails 2 to Rails 3 and I'm using JSON to parse text. Now, I never had to require anything in Rails 2, so I suppose JSON was built in. However, Rails 3 can't find it by default (uninitialized constant), so seem to have to manually require it. Any ideas where should I

[Rails] Re: wrong link_to html output

2010-10-18 Thread Jule Nissen
Tim Shaffer wrote in post #955238: You need to explicitly separate the url_options hash and the html_options has for it to work: %= link_to Lab, { :action = :showlab }, :remote = true % Oh, great. That's it! Everything works now. Thanks a lot. -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] Is Ruby on Rails for beginner programmers?

2010-10-18 Thread Dave Bush
If you don't have a great deal of programming experience ruby will take some time to ramp up on. Rails is great but also has ramp up time and will require dedication as well. I also feel I should say that its not just about programming. Anyone can learn the constructs of an programming language

Re: [Rails] Re: Rails 3 Development Servers - Is mongrel on its way out?

2010-10-18 Thread Dave Bush
I did but didn't see anything that really answered my question so I decided to post. Cheers, Dave On Mon, Oct 18, 2010 at 2:41 PM, Marnen Laibow-Koser li...@ruby-forum.comwrote: dbush wrote in post #955185: Hi folks, Because life happened I had to put down rails/web development for a

Re: [Rails] Is Ruby on Rails for beginner programmers?

2010-10-18 Thread Rajinder Yadav
If you're going to work with ruby on rails on windows its going to be painful afik, some plug-ins just don't work, if you're using linux or mac things will just work. -- Kind Regards, Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely -- You received this message because you are

Re: [Rails] Is Ruby on Rails for beginner programmers?

2010-10-18 Thread radhames brito
Rails is easier for non programmer than it is for professional programmer, mainly because everything its so hard that programmers that come from other languages keep trying to make easy things the hard and so the get stuck often. -- You received this message because you are subscribed to the

Re: [Rails] Re: Newbe: rails version issue

2010-10-18 Thread radhames brito
@steve Keep learning with rubymine, the thing is once you learn how easy rails is you will see that IDEs just get in the way , but you have to learn that by your self we cant tell you that, eventually you will see that for rails the only thing that a IDE is good for is to search for file quickly.

  1   2   >