[Rails] Re: Re: Capybara with redirect

2013-05-12 Thread Assaf Shomer
tamouse mailing lists wrote in post #1108719: > On Sun, May 12, 2013 at 4:46 PM, Assaf Shomer > wrote: >>> >>> Just a quick glance, but you probably should move lines 10-16 (the >>> before and it blocks) inside their own describe block, as the before >>> block at line 10 is also running before eve

Re: [Rails] Re: Capybara with redirect

2013-05-12 Thread tamouse mailing lists
On Sun, May 12, 2013 at 4:46 PM, Assaf Shomer wrote: > tamouse mailing lists wrote in post #1108701: >> On Sun, May 12, 2013 at 3:11 PM, Assaf Shomer >> wrote: >>> If you feel inclined to help, please clone the repo and run the test >>> mentioned in the readme (or the full suite, which is very sh

Re: [Rails] Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-12 Thread Hassan Schroeder
On Sun, May 12, 2013 at 1:49 PM, dave wrote: > ls -al /usr/local/mysql/include > total 1136 > -rw-r--r-- 1 root wheel 29058 5 Apr 08:27 mysql.h That seems like it should have been found. Did you say you were using `rvm gem install ` for this? If so, what happens if you just try `gem in

[Rails] Re: values are being stored as null in mysql d/b

2013-05-12 Thread Matt Jones
On Friday, 10 May 2013 00:40:36 UTC-4, Ruby-Forum.com User wrote: > > hi!! i am building a form in ROR but all the values are being stored as > null in mysql d/b. > > my view code. > > <%= form_for @user do |f| %> > > user_name: <%= f.text_field :user_name %> > user_fname: <%= f.text_field :

[Rails] Re: Capybara with redirect

2013-05-12 Thread Assaf Shomer
tamouse mailing lists wrote in post #1108701: > On Sun, May 12, 2013 at 3:11 PM, Assaf Shomer > wrote: >> If you feel inclined to help, please clone the repo and run the test >> mentioned in the readme (or the full suite, which is very short). The >> test fails (at least for me) but if you run the

Re: [Rails] Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-12 Thread dave
Hi Hassan, The file is in the include subfolder. ls -al /usr/local/mysql/include total 1136 drwxr-xr-x 45 root wheel 1530 5 Apr 10:23 . drwxr-xr-x 17 root wheel578 11 May 12:53 .. -rw-r--r-- 1 root wheel 4507 5 Apr 08:27 big_endian.h -rw-r--r-- 1 root wheel 5196 5 Apr 08:27 b

Re: [Rails] Capybara with redirect

2013-05-12 Thread tamouse mailing lists
On Sun, May 12, 2013 at 3:11 PM, Assaf Shomer wrote: > I am having an issue where a feature works fine but the corresponding > test fails, and I can't understand why. > I created a mock application to demonstrate the problem. > > https://github.com/assafshomer/clear_button > > All it does is show

Re: [Rails] Re: Re: Using gem in rails application

2013-05-12 Thread tamouse mailing lists
On Sat, May 11, 2013 at 1:11 AM, Unix R. wrote: >> Okay, cool, I can see now what you are thinking of. >> >> Starting out, I'd make a module, gem, engine, whatever you choose, >> that just allows you to test out the API; keeping it in it's own space >> will help keep your application modular; you

[Rails] Capybara with redirect

2013-05-12 Thread Assaf Shomer
I am having an issue where a feature works fine but the corresponding test fails, and I can't understand why. I created a mock application to demonstrate the problem. https://github.com/assafshomer/clear_button All it does is show an input form with a clear button. The clearing happens by redirec

Re: [Rails] rake aborted error.

2013-05-12 Thread tamouse mailing lists
On Sun, May 12, 2013 at 4:22 AM, Iago A. wrote: > Hy guys, how I fix this problem? What do you see when you follow the instructions on line 2: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. -- You received this message because y

Re: [Rails] advice, examples, creating front-end for postgresql

2013-05-12 Thread tamouse mailing lists
On Sat, May 11, 2013 at 2:17 PM, spectergeek wrote: > Creating a production DB (not production as in rails terms but production as > in from sales order to shipping) for a small business. I'm completely new to > rails and fairly new to web development. I'm going through the tutorial > here http:/

Re: [Rails] Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-12 Thread tamouse mailing lists
I recently installed all this on a new macbook pro, with mountain lion as of last october. Steps I took were: 1. Install and set up homebrew package manager [http://brew.sh/] 2. Install mysql via homebrew 3. Install rvm, ruby, gem, rails [http://rvm.io] 4. Create rails app [guides.rubyonrails.org]

[Rails] Re: confusion with inline rescue

2013-05-12 Thread Love U Ruby
Here I have done: ar = [1,2,3,1,5,3,"a","b","c"] e = ar.each_slice(3) e.size.times{|i| i = e.next;p i if !(e.peek rescue nil) } #=> ["a", "b", "c"] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

Re: [Rails] Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-12 Thread Hassan Schroeder
On Sun, May 12, 2013 at 10:34 AM, david bone wrote: > What/how suggestions appreciated to get this mysql2 gem installed so that i > can use rails/ruby against this database? > checking for mysql.h... no > checking for mysql/mysql.h... no > - > mysql.h is missing. please check your installat

Re: [Rails] advice, examples, creating front-end for postgresql

2013-05-12 Thread Hassan Schroeder
On Sat, May 11, 2013 at 12:17 PM, spectergeek wrote: > Creating a production DB (not production as in rails terms but production as > in from sales order to shipping) for a small business. I'm completely new to > rails and fairly new to web development. I'm going through the tutorial > here http:

[Rails] confusion with inline rescue

2013-05-12 Thread Love U Ruby
I am not getting any output: can any one point me by saying where did I wrong? ar = [1,2,3,1,5,3,"a","b","c"] e = ar.each_slice(3) e.size.times{|i| i = e.next; p i if (e.peek rescue StopIteration) == nil } I want the output: ["a","b","c"] but getting nothing. -- Posted via http://www.ruby-foru

[Rails] advice, examples, creating front-end for postgresql

2013-05-12 Thread spectergeek
Creating a production DB (not production as in rails terms but production as in from sales order to shipping) for a small business. I'm completely new to rails and fairly new to web development. I'm going through the tutorial here http://ruby.railstutorial.org. But it's focused on a website (o

[Rails] Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-12 Thread dave
Hi Group, I've got mysql database installed and the server running on a Mac Pro with latest mountain lion setup 10.8.3. I'm able to use mysql tools like mysql, mysqladmin to converse with it. :} I use RVM's scripts to fetch gems. I've visited RVM's website but their advise to get "mysql gem load

[Rails] Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-12 Thread david bone
Hi Group, I've got mysql database installed and the server running on a Mac Pro with latest mountain lion setup 10.8.3. I'm able to use mysql tools like mysql, mysqladmin to converse with it. :} I use RVM's scripts to fetch gems. I've visited RVM's website but their advise to get "mysql gem load

Re: [Rails] Error in rubyracer installation

2013-05-12 Thread Norbert Melzer
Have you tried to run 'bundle install' as mentioned in the error message? Am 12.05.2013 15:40 schrieb "Andrew Tristan" : > My OS : Windows 7. I am actually working with my friends with Github, > but 2 days before ,one of my friend has inputed Therubyracer and pushed > it to Github. After that i wa

Re: [Rails] Re: Re: Newbie Associations Design Question

2013-05-12 Thread Colin Law
On 12 May 2013 14:38, Polly Hay wrote: > Colin Law wrote in post #1108653: >> On 12 May 2013 14:09, Polly Hay wrote: >> >> You obviously missed my request to not top post, so that it is easier >> to follow the thread. >> >>> >>> ---Part >> Since they both have to be authenticated then obviously

[Rails] Error in rubyracer installation

2013-05-12 Thread Andrew Tristan
My OS : Windows 7. I am actually working with my friends with Github, but 2 days before ,one of my friend has inputed Therubyracer and pushed it to Github. After that i was trying to run the program as normally and then i inputed for the first step in Gitbash : 1. Find my project directory (cd

[Rails] Re: Re: Newbie Associations Design Question

2013-05-12 Thread Polly Hay
Colin Law wrote in post #1108653: > On 12 May 2013 14:09, Polly Hay wrote: > > You obviously missed my request to not top post, so that it is easier > to follow the thread. > >> >> ---Part > Since they both have to be authenticated then obviously there has to > be at least a common table for the

Re: [Rails] Re: Newbie Associations Design Question

2013-05-12 Thread Colin Law
On 12 May 2013 14:09, Polly Hay wrote: You obviously missed my request to not top post, so that it is easier to follow the thread. > Let me try to describe it clearly in one post: > > * AdminUsers only manage the Team & Member objects. > * Members build Team data by managing all objects under T

[Rails] Re: Newbie Associations Design Question

2013-05-12 Thread Polly Hay
Let me try to describe it clearly in one post: * AdminUsers only manage the Team & Member objects. * Members build Team data by managing all objects under Team (Thing, Widget, Part). * Team data is private to Team Members. ** AdminUser Team A -Member

[Rails] Re: Newbie Associations Design Question

2013-05-12 Thread Polly Hay
Hello Colin Thanks again. Here are my answers. Admin users log in to manage the Teams and Team Members Team Members are real people who log in to view and manage data that belongs to their Team. [Team data is private - it can only be viewed and managed by team members. All teams will build dat

Re: [Rails] Re: Newbie Associations Design Question

2013-05-12 Thread Colin Law
On 12 May 2013 12:24, Polly Hay wrote: Could you not top post please? Insert your reply inline in previous message, it makes it easier to follow the thread. Thanks. > Hello Colin > > Thanks for your response. > > A user can only belong to one team. Admins will never belong to a team. OK, that

[Rails] Re: Newbie Associations Design Question

2013-05-12 Thread Polly Hay
Hello Colin Thanks for your response. A user can only belong to one team. Admins will never belong to a team. So, if I understand you correctly: Team has_many :users User belongs_to :team attr :admin (bool) I am concerned that an admin will have no team but the model "belongs_to" a team. It

Re: [Rails] Re: paypal-express gem

2013-05-12 Thread Saravanan P
Hello Doug Thanks for the reply. I was tested in staging only, but I didn't get any IPN from Paypal. And also I can't able to pass custom values like "custom" and "invoice" fields but we can pass this fields to Paypal and get its from Paypal payment_request details but that too not working. "descr

Re: [Rails] Newbie Associations Design Question

2013-05-12 Thread Colin Law
On 12 May 2013 09:34, Polly Hay wrote: > Hello > > I am new to rails and have a design issue. Although I have a proposed > solution I am far from sure how robust it is. I would appreciate any > feedback. > > My application is team based: > - A user can only be in one team > - Team members(user) ca

[Rails] rake aborted error.

2013-05-12 Thread Iago A.
Hy guys, how I fix this problem? I saw others topics but not solved. Link to view errors: http://pastebin.com/pYCdgX4K When I submit on terminal: rake -T He return errors(in link) This error happens when I submit db:create in my app folder. -- Someone can help me? -- Posted via http://www.ruby

[Rails] Re: Why did you switch from Django to Rails?

2013-05-12 Thread Abdullah Esmail
Personally, I went from rails to django to rails to django to rails again. I think the main reason I like rails is ruby. Once I understood the rails system and ecosystem, I chose it to be my default option for new apps. One thing that the rails community tends to do is living on the edge. For me

[Rails] Newbie Associations Design Question

2013-05-12 Thread Polly Hay
Hello I am new to rails and have a design issue. Although I have a proposed solution I am far from sure how robust it is. I would appreciate any feedback. My application is team based: - A user can only be in one team - Team members(user) cannot view/edit another team's content Team A -User -Wid

Re: [Rails] Re: [Rails4] How to know if a gem is thread safe?

2013-05-12 Thread Geoffrey Roguelon
Hi, Thank you for your answers, I will watch this video. - Geoffrey Roguelon Le 12 mai 2013 à 03:33, Robert Walker a écrit : > Geoffrey Roguelon wrote in post #1108588: >> Hi, >> >> With the coming of Rails 4 and the thread safe default configuration. >> >> How to know if a gem is compat