[Rails] Re: Bind two pages by form_tag

2014-01-31 Thread Marie Bellec
Here is the counters_controller.rb code : class CountersController ApplicationController #require 'colorize' before_action :get_counter, only: [:show, :edit, :update, :destroy] # GET /counters # GET /counters.json def index end # GET /counters/1 # GET /counters/1.json def

[Rails] sunspot solr search on multiple fields of associated models

2014-01-31 Thread kishore . seemala
I have a 2 entities which have many to many relation say teacher and subject. Each teacher has many subjects. I want to perform search on teacher by sunspot solr for all the teacher who teaches 3 subjects biology, anatomy and botany with specific time. -- Say model structures and

[Rails] Re: InvalidAuthenticityToken

2014-01-31 Thread Enrico Pilotto
I have the same exactly problem using a simple login form with Devise... Any solution, or idea of the problem? -- 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

[Rails] Re: Bind two pages by form_tag

2014-01-31 Thread Frederick Cheung
On Friday, January 31, 2014 10:15:08 AM UTC, Marie Bellec wrote: I don't think the problem comes from contôler and raw_counter, because when I replace : %= form_tag '/counters/id', method: :get % by: %= form_tag '/counters/ovm%3Ab%3A%7Bpausecho%7D%2Fmozilla', method: :get % That's

[Rails] Re: Integration with LinkedIn.

2014-01-31 Thread Hema Shree
Hi, I am new to integrate the social media linkedin in our ruby on rails application.I registered the application in linkedin developer website,but I don't know how to integrate that in our application using authentication from scratch(without using devise). I used gem linkedin and configured

[Rails] Re: Can two Rails versions use one database?

2014-01-31 Thread Jim
On Thursday, January 30, 2014 4:13:58 PM UTC-5, Russ S wrote: So, we are searching for creative solutions to the upgrade problem. One idea is to start rewriting the application in Rails 4 and run it alongside the Rails 1 application. As features are added to the Rails 4 version, the same

[Rails] Uninstall old version of Bootstrap, how?

2014-01-31 Thread Bizt
Hi, I added this line to my Gemfile, then done bundle install gem 'bootstrap-sass', '2.3.2.0' ...but, I now want to install the latest version of bootstrap. How do I uninstall these files, do I just go into the assets directory and manually delete them? Then, add the recent version to my

Re: [Rails] Uninstall old version of Bootstrap, how?

2014-01-31 Thread Arun kant sharma
Maybe rake assets:clean will help On Fri, Jan 31, 2014 at 7:53 PM, Bizt martyn@gmail.com wrote: Hi, I added this line to my Gemfile, then done bundle install gem 'bootstrap-sass', '2.3.2.0' ...but, I now want to install the latest version of bootstrap. How do I uninstall these

[Rails] Is there any opening in India for RoR?

2014-01-31 Thread Kishor Vyavahare
I am fresher to RoR but interested to work in it. I am learning RoR and created 3-4 simple application in it. I want to learn more and make career in it. I use repository Github and deploy on Heroku site, below link is given. GitHub:- https://github.com/vyavahare-kishor Heroku:-

Re: [Rails] Uninstall old version of Bootstrap, how?

2014-01-31 Thread Bizt
Yeh I tried that. I don't seem to have any BS files in assets yet it will still applying BS styles. Actually, I had the line in a custom.css.sass file: @import bootstrap; I'll remove this line, update the Gemfile and reinstall? Btw if I replace the line: gem 'bootstrap-sass', '2.3.2.0' ..

Re: [Rails] Which Company is Best on Ruby on Rails Development in India?

2014-01-31 Thread Mohit Sindhwani
On 22/1/2014 5:35 PM, Adam Gilchrist wrote: Hi all, I looking for best company on Ruby on Rails Development in India. Have any good companies in India please let me know. Josh Software - they are great and very good contributors too. http://www.joshsoftware.com/ Best Regards, Mohit. --

[Rails] Run generator destroy, now git is telling me I have missing files. How do I best deal with this?

2014-01-31 Thread Bizt
Hi, In rails I run rails generator destroy... for my controllers and models. When I git add . files and commit changes, git tells me I have missing files. How best to handle this? I want the files off git as I don't need them anymore, they're not in my local repository. Do I then need to

Re: [Rails] Uninstall old version of Bootstrap, how?

2014-01-31 Thread Frederick Cheung
On Friday, January 31, 2014 2:51:45 PM UTC, Bizt wrote: Yeh I tried that. I don't seem to have any BS files in assets yet it will still applying BS styles. Actually, I had the line in a custom.css.sass file: @import bootstrap; I'll remove this line, update the Gemfile and reinstall?

Re: [Rails] InvalidAuthenticityToken

2014-01-31 Thread Walter Lee Davis
Oh man, I went through this a while back, and while it got better, I'm not sure exactly what I did that made it so. I think I rolled back a minor version or two, and all was well. Jobs I have done since then worked just fine with whatever was current, so I think it may have been a wonky minor

Re: [Rails] Run generator destroy, now git is telling me I have missing files. How do I best deal with this?

2014-01-31 Thread Colin Law
On 31 January 2014 14:56, Bizt martyn@gmail.com wrote: Hi, In rails I run rails generator destroy... for my controllers and models. When I git add . files and commit changes, git tells me I have missing files. How best to handle this? I want the files off git as I don't need them

[Rails] Re: InvalidAuthenticityToken

2014-01-31 Thread Enrico Pilotto
Im using Rails 4.0.2, devise (3.1.1), omniauth (1.1.4), omniauth-facebook (1.4.1), omniauth-twitter (1.0.1), cancan (1.6.10) and ActiveAdmin. -- 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

Re: [Rails] InvalidAuthenticityToken

2014-01-31 Thread Walter Lee Davis
Well, you're many versions ahead of where I was when I hit this issue. I tried all sorts of things at the time, switched to db-backed sessions, fiddled with minor versions, and then _something_ worked. But I remember it was incredibly frustrating , because it would work for a few logins and

[Rails] Re: Run generator destroy, now git is telling me I have missing files. How do I best deal with this?

2014-01-31 Thread Melvin Ram
Use 'git add -u' or add the specific files you've removed ex. 'git add app/removed_file.rb' On Friday, January 31, 2014 8:56:51 AM UTC-6, Bizt wrote: Hi, In rails I run rails generator destroy... for my controllers and models. When I git add . files and commit changes, git tells me I have

[Rails] Re: How can I customize this render json output?

2014-01-31 Thread Na Su
Is this what you're looking for? selected_objects.map do |obj| {scholarship = obj} end.to_json -- 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

[Rails] Re: Run generator destroy, now git is telling me I have missing files. How do I best deal with this?

2014-01-31 Thread Bizt
Thanks for your reply. Can you tell me what git add -u does, I can't find documentation for that specific option. Thanks -- 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,

[Rails] twitter-bootstrap-rails Gem adds a LOT of .js files to the page, doesn't it?

2014-01-31 Thread Bizt
Hi, I've installed twitter-bootstrap-rails to my app but when I view the source code I see. script data-turbolinks-track=true src=/assets/twitter/bootstrap/bootstrap-transition.js?body=1 view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-transition.js?body=1/scriptscript

[Rails] Problem with my associations Users - Accounts - Transactions

2014-01-31 Thread Bizt
I have three tables: users, accounts, and transactions. Users have many accounts, accounts have many transactions. So I define my models like so: class User ActiveRecord::Base has_many :accounts, dependent: :destroy end class Account ActiveRecord::Base belongs_to :user has_many

[Rails] Re: Problem with my associations Users - Accounts - Transactions

2014-01-31 Thread Bizt
Btw, I get the following error: undefined method `transactions' for nil:NilClass To me this tells me that @account if not found, or is returning an empty array. Am I using the wrong method, or parameters? -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Re: Problem with my associations Users - Accounts - Transactions

2014-01-31 Thread vikram jain
Please, try Users instead of current_user, like : def index @account = Users.accounts.find_by_id(params[:accoount]) @transactions = @account.transactions.find_all_by_account(params[: accoount]); end On Sat, Feb 1, 2014 at 9:29 AM, Bizt martyn@gmail.com wrote: Btw, I get the following

Re: [Rails] Re: Problem with my associations Users - Accounts - Transactions

2014-01-31 Thread Bizt
Aaargh!!! I see it, I didn't type account correctly. I thought I was using the method incorrectly. How did I not see that for so long?! @account = Users.accounts.find_by_id(params[:acco*o*unt]) This now works - @account = current_user.accounts.find_by_id(params[: *account*]) On Saturday,

Re: [Rails] Re: Problem with my associations Users - Accounts - Transactions

2014-01-31 Thread Bizt
Actually I've changed the whole thing to: def index @account = current_user.accounts.find_by_id(params[:account]) @transactions = @account.transactions; end .. works fine On Saturday, 1 February 2014 14:45:25 UTC+9, Bizt wrote: Aaargh!!! I see it, I didn't type account correctly. I

[Rails] Re: twitter-bootstrap-rails Gem adds a LOT of .js files to the page, doesn't it?

2014-01-31 Thread Bizt
Oh, I think I see. In production ONLY it condenses them all down to a single file? Just realized now. -- 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