[Rails] [JOB] Ruby Enthusiasts, San Francisco - full-time

2014-05-14 Thread Lauren Tyson
Hi There, I don't know if this is the right place to post this but...if you are: - In the San Francisco Bay Area (or planning to move there) - Eat/Sleep/Breathe Ruby - Have a decent amount of experience with Ruby - Want a full-time job - Agree with this video: http://www.youtube.com/watch?v=l0uaS

[Rails] Rails 4 has_and_belongs_to_many specific order

2014-05-14 Thread Henrique Vilela
I'm trying to set a specific order to an association, but I keep getting the default scope order definition. What am I missing? class Pattern < ActiveRecord::Base default_scope { order('sort, title') } has_and_belongs_to_many :children, :class_name => 'Pattern', :join_table =

[Rails] Re: Recommendations for Hosted CI servers supporting RoR with private repos?

2014-05-14 Thread John C
I used CircleCi with my private github repo and heroku. I was impressed. Set up parallel tests and git-flow publishing to staging and production servers on success. Their support was good for this use case. --John On Thursday, May 8, 2014 9:22:33 AM UTC-4, Ganesh Ranganathan wrote: > > Any re

[Rails] super is not working on after_sign_in_path_for(resource)

2014-05-14 Thread Cristian Hoyos
I have this: class Users::SessionsController < Devise::SessionsController def after_sign_in_path_for(resource) super end super redirect to root_path and i dont want to do it. I need to redirect other view -- You received this message because you are subscribed to the Google Groups "Ruby o

[Rails] Modelling multiple types of users with Devise and Rails 4

2014-05-14 Thread Anthro Christian Ramsey
I have 3 types of "users" Shop Provider Customer The last 2 users will have similar attributes such as First Name Last Name and so on And the Shop user type will have the most contrast between types. As far as behaviours they will all be quite different, although Provider and Shop will inh

[Rails] Sample_app does not show account menu, How can I solve that?

2014-05-14 Thread Jaimin Pandya
Account menu display on local server successfully. I can able to sign in and sign out on local server. I deployed sample_app to Heroku successfully. When I check my Heroku link, account menu not working. I am attaching authentication_pages_spec.rb, _header.html.erb, application.js file. please f

[Rails] composite primary key - Rails 4.1

2014-05-14 Thread Shailendra J.
Hi, I am facing issue with composite primary key In my gem file I have the below entries - gem 'rails', '>= 4.1.0.rc2' gem 'mysql2' gem 'rb-readline', "~> 0.5.1" gem 'sdoc', '~> 0.4.0', group: :doc gem 'spring',group: :development gem 'bcrypt', '~> 3.1.7' gem '

[Rails] Re: Not changes layouts

2014-05-14 Thread mike2r
On Wednesday, May 14, 2014 5:22:21 PM UTC-4, Ruby-Forum.com User wrote: > > I, [2014-05-14T18:18:16.115869 #9178] INFO -- : Started GET "/" for > 186.59.132.46 at 2014-05-14 18:18:16 -0300 > I, [2014-05-14T18:18:16.117223 #9178] INFO -- : Processing by > WelcomesController#index as HTML > I

[Rails] Re: Not changes layouts

2014-05-14 Thread Enuel M.
I, [2014-05-14T18:18:16.115869 #9178] INFO -- : Started GET "/" for 186.59.132.46 at 2014-05-14 18:18:16 -0300 I, [2014-05-14T18:18:16.117223 #9178] INFO -- : Processing by WelcomesController#index as HTML I, [2014-05-14T18:18:16.119276 #9178] INFO -- : Rendered welcomes/index.html.erb with

Re: [Rails] Re: Not changes layouts

2014-05-14 Thread Colin Law
On 14 May 2014 22:03, Enuel M. wrote: > I tried and continued seeing the same thing, this is my site > www.miapoyoescolar.com. Delete the entire folder of my hosting and I > went up which in my local machine if it works, but I keep seeing the > construction template What do you see in the log whe

[Rails] Re: Not changes layouts

2014-05-14 Thread Enuel M.
I tried and continued seeing the same thing, this is my site www.miapoyoescolar.com. Delete the entire folder of my hosting and I went up which in my local machine if it works, but I keep seeing the construction template -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Re: Not changes layouts

2014-05-14 Thread mike2r
On Wednesday, May 14, 2014 12:47:28 PM UTC-4, Ruby-Forum.com User wrote: > > Hi, when i upload changes on layouts in production no show changes. > > So I > > > * bundle exec rake tmp:clear RAILS_ENV=production > * bundle exec rake log:clear RAILS_ENV=production > * bundle exec rake assets:

[Rails] Re: search issue

2014-05-14 Thread Mark Mark
hi guys .. this is extremely helpful. Many Thanks -- 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-

[Rails] Re: Account menu not working in sample_app of rails 3.2 version

2014-05-14 Thread Jaimin Pandya
Hassan Schroeder wrote in post #1146084: > On Wed, May 14, 2014 at 9:44 AM, Jaimin Pandya > wrote: > >> what will be reason for this?Could anyone can help me in this? > > http://www.catb.org/esr/faqs/smart-questions.html Thank you for your suggestion. I have changed format of my question. Kind r

[Rails] Not changes layouts

2014-05-14 Thread Enuel M.
Hi, when i upload changes on layouts in production no show changes. So I * bundle exec rake tmp:clear RAILS_ENV=production * bundle exec rake log:clear RAILS_ENV=production * bundle exec rake assets:clean RAILS_ENV=production * bundle exec rake assets:clobber RAILS_ENV=production * bundle e

Re: [Rails] Account menu not working in sample_app of rails 3.2 version

2014-05-14 Thread Hassan Schroeder
On Wed, May 14, 2014 at 9:44 AM, Jaimin Pandya wrote: > what will be reason for this?Could anyone can help me in this? http://www.catb.org/esr/faqs/smart-questions.html -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan --

[Rails] Account menu not working in sample_app of rails 3.2 version

2014-05-14 Thread Jaimin Pandya
I am reading chapter 8 (sign in, sign out) from michael hartl Ruby on Rails book. I have deployed my sample_app to heroku. When I check heroku links, In that account menu not working, drop down list is not coming. what will be reason for this?Could anyone can help me in this? Kind regards. --

[Rails] Re: Database depending on URL

2014-05-14 Thread Matt Jones
On Tuesday, 13 May 2014 19:38:51 UTC-4, Bastiaan Olij wrote: > > Hassan, I'll be sure to check out those leads. It would be viable to have > to add new entries into database.yml whenever we put a new site online and > switching between them but it would be preferably to create the pools for a

Re: [Rails] How to avoid variable been reset

2014-05-14 Thread Gustavo Caso
> > Thanks Walter that sounds pretty good I think I'm going to do that. I will store the hole Sale in the session until it gets created. Thanks. Gustavo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this gro

Re: [Rails] How to avoid variable been reset

2014-05-14 Thread Walter Lee Davis
On May 14, 2014, at 8:35 AM, Gustavo Caso wrote: > Thanks Walter for the quick answer. > > I kind of new to ajax, but what I'm trying to do is in a form when selecting > data from the select drop down I would like to change with ajax some div that > contain information about the sale, like pri

Re: [Rails] How to avoid variable been reset

2014-05-14 Thread Gustavo Caso
Thanks Walter for the quick answer. I kind of new to ajax, but what I'm trying to do is in a form when selecting data from the select drop down I would like to change with ajax some div that contain information about the sale, like price, quote etc The problem is when I try to get the info f

Re: [Rails] How to avoid variable been reset

2014-05-14 Thread Walter Lee Davis
On May 14, 2014, at 5:42 AM, Gustavo Caso wrote: > I have a form that send an AJAX request to the controller, the action just > instantiate an object so I could send data back to the view, but every time I > hit the action the variable reset is there a way to avoid this behaviour. > > This is

[Rails] How to avoid variable been reset

2014-05-14 Thread Gustavo Caso
I have a form that send an AJAX request to the controller, the action just instantiate an object so I could send data back to the view, but every time I hit the action the variable reset is there a way to avoid this behaviour. This is my code inside my SaleController : def getquote @line_it