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
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
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
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
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
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
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
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
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:-
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'
..
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.
--
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
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?
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
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
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
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
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
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
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,
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
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
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
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
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,
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
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
27 matches
Mail list logo