[Rails] Rails Instillation Error

2013-05-31 Thread Vijay Maddipati
I installed the ruby 1.9.3. while instillation rails, I am getting instillation error. Below is the error ERROR: Error installing rails: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in

Re: [Rails] Rails Instillation Error

2013-05-31 Thread Colin Law
On 31 May 2013 07:45, Vijay Maddipati li...@ruby-forum.com wrote: I installed the ruby 1.9.3. while instillation rails, I am getting instillation error. Below is the error I advise using rvm for installing ruby and rails. See http://rvm.io. That will handle all the dependencies for you if you.

[Rails] Problems with compiling in development

2013-05-31 Thread Paul Bergstrom
I have a strange problem that I suspect has to do with compiling. In development do I need to do anything after I change the code? It still loads a file, looking in the log file, that it shouldn't. I thought Rails didn't compile in development. -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: ArgumentError in Controller#new after updating Rails version

2013-05-31 Thread andreo
On Sunday, 26 May 2013 14:49:27 UTC+2, Sasha Chilly wrote: Hello, need some help, App is running under Ruby 1.8.7 and Rails 3.0.11 After updating Rails version to 3.1.11, tsrted to fet strange error on new article page: http://cl.ly/image/1o0P050d2q41 Don't know where this error could

Re: [Rails] ArgumentError in Controller#new after updating Rails version

2013-05-31 Thread andreo
On Monday, 27 May 2013 12:05:08 UTC+2, Sasha Chilly wrote: This is what i can see in development.log file: Started GET /articles/new for 127.0.0.1 at Mon May 27 14:00:44 +0400 2013 Processing by ArticlesController#new as HTML Completed 500 Internal Server Error in 214ms ArgumentError

[Rails] Need help putting together a workflow diagram

2013-05-31 Thread Seth F.
Hey Guys I'm very new to rails and the development environment so please bear with me :) I'm interning at a company and have been tasked with doing a 1-pager on how our IT-workflow...works. It must not be too complex, and must be in flow diagram format. Here's info that I have: - We use Rails

[Rails] Re: 2 Rails Developers needed ASAP

2013-05-31 Thread Erwin
+1 ... The work is supposed to be onsite? Or there is a possibility for working remotely? Le jeudi 30 mai 2013 01:10:57 UTC+2, Ammar Yousuf a écrit : We are looking for an experienced Ruby on Rails developer for a 6 - 12 month contract project in Englewood, Colorado. The start date is

[Rails] Re: Problems with compiling in development

2013-05-31 Thread Erwin
what do you mean by : Rails didn't compile in development can you copy your log file in a gist , Le vendredi 31 mai 2013 09:45:09 UTC+2, Ruby-Forum.com User a écrit : I have a strange problem that I suspect has to do with compiling. In development do I need to do anything after I change the

Re: [Rails] Need help putting together a workflow diagram

2013-05-31 Thread 3dd13
Sorry not to tell u the answer directly Do u know what are they and what each of them does ? On Friday, May 31, 2013, Seth F. wrote: Hey Guys I'm very new to rails and the development environment so please bear with me :) I'm interning at a company and have been tasked with doing a 1-pager

[Rails] Re: Rails Instillation Error

2013-05-31 Thread Vijay Maddipati
Colin Law wrote in post #1110759: On 31 May 2013 07:45, Vijay Maddipati li...@ruby-forum.com wrote: I installed the ruby 1.9.3. while instillation rails, I am getting instillation error. Below is the error I advise using rvm for installing ruby and rails. See http://rvm.io. That will handle

Re: [Rails] ArgumentError in Controller#new after updating Rails version

2013-05-31 Thread Sasha Chilly
Here it is: % set_editor_comment % %= form_for @article do |f| % %= render shared/error_messages, :target = @article % % if admin? % p %= f.label :user_id % %= f.select :user_id, User.authors_and_admins.collect {|p| [ p.username, p.id ] } % /p % end % p %=

[Rails] Re: Can't setup Rails with RVM in ubuntu 12.04

2013-05-31 Thread haxuan lac
Thanks Colin,Mike I had done with instruction of You.And i tried with gem install rails --version '3.2.13' and add : [[ -s $HOME/.rvm/scripts/rvm ]] source $HOME/.rvm/scripts/rvm to Bashrc file This run.Thanks a lot -- Posted via http://www.ruby-forum.com/. -- You received this message

Re: [Rails] ArgumentError in Controller#new after updating Rails version

2013-05-31 Thread andreo
And the server console does not give you any information? when you hit the route what does the browser show? On Friday, May 31, 2013 12:54:48 PM UTC+2, Sasha Chilly wrote: Here it is: % set_editor_comment % %= form_for @article do |f| % %= render shared/error_messages, :target = @article

Re: [Rails] ArgumentError in Controller#new after updating Rails version

2013-05-31 Thread Sasha Chilly
What browser shows - i've linked in my first post. What is shown in console - you can see in my second post. That's all information that i can see.. пятница, 31 мая 2013 г., 15:58:23 UTC+4 пользователь and...@benjamin.dk написал: And the server console does not give you any information? when

Re: [Rails] ArgumentError in Controller#new after updating Rails version

2013-05-31 Thread andreo
Well in your second post you do not show the development.log, what I am asking is your console where you start your server. also have you tried and raised your view to see if it gets hit. like on line 1: %= raise puts.inspect % if it doesnst raise we will know the view does not get hit and we

[Rails] Rails 3.2 with Ruby 2.0?

2013-05-31 Thread Walter Lee Davis
Can anyone recommend one way or the other this particular combination? I'm not ready to jump on the Rails 4 bandwagon, I have a lot of sites to get up to 3.2 first, just as a jumping-off point for their eventual migration to 4. I just read that 1.9.3 is only going to be maintained until 2014,

[Rails] Re: Need help putting together a rails workflow diagram

2013-05-31 Thread Seth F.
I have a basic knowledge of all of them, but the main reason of this task is to try and understand the logic of updating and maintaining the system. Basically, I'm trying to complete a puzzle of how these work together / in what way each of them reference eachother. Thanks for your help. --

[Rails] Selective delete from join tables

2013-05-31 Thread Dave Castellano
Hi, I'm learning rails and have run into what for me is a difficult problem. I have the following associations with a galleries_pictures and a pictures_questions join table: class Picture ActiveRecord::Base has_and_belongs_to_many :questions has_and_belongs_to_many :galleries class

[Rails] Screenshot using browserstack

2013-05-31 Thread Saravanan P
Hello everyone I am using rails 3.2.9 and using browserstack-screenshot gem for getting screentshot. but i am getting the following error message. *But i can login using this account setting and can get screenshot on their.* *`http_response_code_check': 401 Unauthorized : Authentication

[Rails] Re: Problems with compiling in development

2013-05-31 Thread Paul Bergstrom
Kad Kerforn wrote in post #1110772: what do you mean by : Rails didn't compile in development can you copy your log file in a gist , Le vendredi 31 mai 2013 09:45:09 UTC+2, Ruby-Forum.com User a crit : Not sure what I mean. I just assumed it was something with compiling. But it could be

Re: [Rails] Re: Need help putting together a rails workflow diagram

2013-05-31 Thread Hassan Schroeder
On Fri, May 31, 2013 at 6:02 AM, Seth F. li...@ruby-forum.com wrote: I have a basic knowledge of all of them, but the main reason of this task is to try and understand the logic of updating and maintaining the system. Basically, I'm trying to complete a puzzle of how these work together / in

Re: [Rails] Problems with compiling in development

2013-05-31 Thread Walter Lee Davis
You shouldn't need to precompile assets in development, if that's what you mean by compiling. Walter On May 31, 2013, at 10:21 AM, Paul Bergstrom wrote: But to put it short and back to my question, can I forget compiling in developing mode, not part of my problem? -- You received this

Re: [Rails] Re: Problems with compiling in development

2013-05-31 Thread Colin Law
On 31 May 2013 15:21, Paul Bergstrom li...@ruby-forum.com wrote: Kad Kerforn wrote in post #1110772: what do you mean by : Rails didn't compile in development can you copy your log file in a gist , Le vendredi 31 mai 2013 09:45:09 UTC+2, Ruby-Forum.com User a crit : Not sure what I mean. I

[Rails] Routing error when creating a new application

2013-05-31 Thread Cameron D.
Hello. So I created a new application (named guestbook), controllers, and entry(named sign_in) in Rails. I uncommented the match ':controller..' and the 'root :to = 'welcome#index' lines in config/locales/routes.rb file. When I type localhost:3000/entries/sign_in, I received the Routing

Re: [Rails] Selective delete from join tables

2013-05-31 Thread Hassan Schroeder
On Fri, May 31, 2013 at 6:50 AM, Dave Castellano li...@ruby-forum.com wrote: My problem is, I cannot figure out how to delete the picture in the question and at the same time not delete it from the gallery ie delete the pictures_questions association but not the galleries_pictures

[Rails] Re: Re: Problems with compiling in development

2013-05-31 Thread Paul Bergstrom
Colin Law wrote in post #1110802: On 31 May 2013 15:21, Paul Bergstrom li...@ruby-forum.com wrote: I'm kind of lost with Rails right now. What was simple and beautiful is no more. I've never understood REST and I think this is what gives me problems. That and this compiling thing in

Re: [Rails] Routing error when creating a new application

2013-05-31 Thread Colin Law
On 31 May 2013 16:09, Cameron D. li...@ruby-forum.com wrote: Hello. So I created a new application (named guestbook), controllers, and entry(named sign_in) in Rails. I uncommented the match ':controller..' and the 'root :to = 'welcome#index' lines in config/locales/routes.rb file. When

[Rails] Re: Selective delete from join tables

2013-05-31 Thread Robert Walker
Dave Castellano wrote in post #1110796: Hi, I'm learning rails and have run into what for me is a difficult problem. I have the following associations with a galleries_pictures and a pictures_questions join table: class Picture ActiveRecord::Base has_and_belongs_to_many :questions

Re: [Rails] Re: Need help putting together a rails workflow diagram

2013-05-31 Thread 3dd13
When u say u need a workflow diagram, I assume u are talking about the data flow or communication sequence So to help u solve this problem, one hint is u have to illustrate how the components talks to each other when there is a http request coming in For example, in the case of user wants to

Re: [Rails] Rails 3.2 with Ruby 2.0?

2013-05-31 Thread John Davalos
I'm running 2.0 on my laptop along with rails 3.2 apps without any issues. Is there something specific you're concerned with? This should be particularly easy if you're running rvm or rbenv. you can install ruby 2.0 then when you go to install the rails gem you can just set the version of rails

Re: [Rails] Rails 3.2 with Ruby 2.0?

2013-05-31 Thread Walter Lee Davis
I just don't want to go through the same thing I did with all my Rails 2.3 apps on 1.8.7. It was a real pain to bring them up to Rails 3 and 1.9.x since I wasn't using Bundler on 2.3. Walter On May 31, 2013, at 1:09 PM, John Davalos wrote: I'm running 2.0 on my laptop along with rails 3.2

[Rails] A simple javascript alert not working

2013-05-31 Thread Paul Bergstrom
If I have a file in view /test called index.js.erb and in it a simple alert(hello) shouldn't that run when I go to /test/index? It doesn't. -- 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

[Rails] inverse_of and #save called multiple times

2013-05-31 Thread Michel Pigassou
Hi. I created an app to illustrate my problem: https://github.com/Dagnan/rails_inverse_of I have a model with a belongs_to, and the other with a has_one. So far so good. When I configure the option inverse_of on both model and I perform a simple #save on the main object, it is actually saved

[Rails] Re: failed updated, tried to roll back but cannot get site to start

2013-05-31 Thread Matt Jones
On Thursday, 30 May 2013 05:31:54 UTC-7, Ruby-Forum.com User wrote: I tried to update a rails site going from 2.3.5 to 2.3.15, which failed. I had a backup of the site which I restored, but the site still will not start. It errors with: undefined method `name' for actionmailer:String

[Rails] Getting json data to div and partial after ajax call?

2013-05-31 Thread Paul Bergstrom
I'm able to get json data back after an ajax call and into a div. But how do I get it into html, styled format? How about getting it to a partial? How do I do that in coffeescript? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] Getting json data to div and partial after ajax call?

2013-05-31 Thread Benjamin Iandavid Rodriguez
For what you say. After you get the JSON response the partial is already processed so you just need to update the correct div with the correct info. Use jQuery's append or html properties to update your divs. 2013/5/31 Paul Bergstrom li...@ruby-forum.com I'm able to get json data back after

[Rails] Re: Getting json data to div and partial after ajax call?

2013-05-31 Thread Paul Bergstrom
Benjamin Iandavid Rodriguez wrote in post #1110828: For what you say. After you get the JSON response the partial is already processed so you just need to update the correct div with the correct info. Use jQuery's append or html properties to update your divs. 2013/5/31 Paul Bergstrom

[Rails] Re: Getting json data to div and partial after ajax call?

2013-05-31 Thread Paul Bergstrom
I get an array back in json. That is loaded but without styling. -- 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 unsubscribe from this group and stop receiving emails from it, send an email

Re: [Rails] A simple javascript alert not working

2013-05-31 Thread Colin Law
On 31 May 2013 18:36, Paul Bergstrom li...@ruby-forum.com wrote: If I have a file in view /test called index.js.erb and in it a simple alert(hello) shouldn't that run when I go to /test/index? It doesn't. I think you will have to give us a bit more detail on exactly what you have done. First

[Rails] accidentally created a rails app in the home folder

2013-05-31 Thread mark ronay
Im a new user - I just installed rails, following directions here: http://rubyonrails.org/download however, when it came time to make a rails new path/etc/etc I get this message: Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.

Re: [Rails] accidentally created a rails app in the home folder

2013-05-31 Thread Hassan Schroeder
On Fri, May 31, 2013 at 3:28 PM, mark ronay li...@ruby-forum.com wrote: Im a new user - I just installed rails, following directions here: http://rubyonrails.org/download however, when it came time to make a rails new path/etc/etc I get this message: Can't initialize a new Rails application

[Rails] Re: accidentally created a rails app in the home folder

2013-05-31 Thread mark ronay
exact same thing -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com.

Re: [Rails] Re: accidentally created a rails app in the home folder

2013-05-31 Thread Hassan Schroeder
On Fri, May 31, 2013 at 3:54 PM, mark ronay li...@ruby-forum.com wrote: exact same thing In an empty directory? Then I'd say you have serious problems. The only complication during the download was that I had to upgrade from version 1.8.6 to 1.9.3, which I did after installing rails. Wait,

[Rails] Re: Re: accidentally created a rails app in the home folder

2013-05-31 Thread mark ronay
ruby -v gives ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux] rails -v gives Rails 3.2.13 gem -v gives 1.8.25 Im running ubuntu. I had ruby 1.8.6. I installed gem but it gave an error when I was trying to get rails through gem, bc i had the old version of ruby. I got rvm, updated to

[Rails] Re: Re: accidentally created a rails app in the home folder

2013-05-31 Thread Rick
What is the command you are using to create a new rails app? Just to be sure, type the command into a terminal window and copy / paste the command you typed and the output from rails. On Friday, May 31, 2013 7:49:14 PM UTC-4, Ruby-Forum.com User wrote: ruby -v gives ruby 1.9.3p429

Re: [Rails] Re: Re: accidentally created a rails app in the home folder

2013-05-31 Thread Hassan Schroeder
On Fri, May 31, 2013 at 4:49 PM, mark ronay li...@ruby-forum.com wrote: ruby -v gives ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux] rails -v gives Rails 3.2.13 gem -v gives 1.8.25 Those seem reasonable, though the result doesn't :-/ Given that you're just starting, I'd be inclined

[Rails] Re: accidentally created a rails app in the home folder

2013-05-31 Thread Rick
There are (at least) two executable ruby scripts named rails. The first is found in your typical search path and should be the one that gets called when you type rails new my_app. The second is found, after creating your new application my_app, in the directory my_app/script (rails version

[Rails] Re: accidentally created a rails app in the home folder

2013-05-31 Thread Rick
for what it's worth, the error message is generated in the file: gems/railties-3.2.13/lib/rails/commands.rb On Friday, May 31, 2013 9:09:16 PM UTC-4, Rick wrote: There are (at least) two executable ruby scripts named rails. The first is found in your typical search path and should be the

[Rails] Re: Selective delete from join tables

2013-05-31 Thread Dave Castellano
P.S. None of this code has been tested. Just wrote it by memory. Thank you. I get it. It worked well with a couple of small tweaks. ...wish I could do that from memory :-) Thanks, Dave -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

[Rails] Re: Re: Re: accidentally created a rails app in the home folder

2013-05-31 Thread mark ronay
Hassan Schroeder wrote in post #1110852: On Fri, May 31, 2013 at 4:49 PM, mark ronay li...@ruby-forum.com wrote: ruby -v gives ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux] rails -v gives Rails 3.2.13 gem -v gives 1.8.25 Those seem reasonable, though the result doesn't :-/

[Rails] Re: accidentally created a rails app in the home folder

2013-05-31 Thread mark ronay
Hi Rick, thanks! I tried carrying out those instructions: heres what i got - mwr@mwr-Ubuntu:/home$ which rails /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails mwr@mwr-Ubuntu:/home$ which /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails /home/mwr/.rvm/gems/ruby-1.9.3-p429/bin/rails I suppose im