Hi guys, I am running into some problems when I retrieve my users in a Ruby on Rails application. Everything is working great, but when I try to do a before_filter :get_users the app is crashing due to an error of mine in the logic. I want to retrieve all users that belong to a certain institution, using this models:
class User < ActiveRecord::Base belongs_to :institution end
class Institution < ActiveRecord::Base has_many :users end
class HomeController < ApplicationController before_filter :get_users
def get_users @users = User.where("institution" => current_user.institution) end end [/CODE]
Can please someone help me out I've tried everything without any luck. Thank you in advance.
I don't use one drive, but then I don't use any cloud storage, not even Icloud on my mac.
If I did use cloud storage, then I would not use One drive, not because there is anything wrong with it, but because I can use Icloud.
The only reason I see to use one drive is if your job requires you to have access to it
Not built in, which is not a bad thing. There are ways of adding cloud storage to it, Dropbox is the most well know that also have a client for Linux, but there are others.
RTD and Bad Wolf out
Everybody lied, there was never a Christmas script done, even though they said there was
RTD brought it back then killed it with the PC overload and garbage nonsensical stories
Who knows what production company will want to drink from the poisoned chalice now.
The squandered opportunity with the Disney partnership will go down in production folklore
Problem with that is Vivaldi is the slowest chromium browser I have ever used. I keep trying it every few months in case performance has improved.
...and it's not due to specs or config. 5900x/32gigs/RTX3080 here, Win 11 25H2 etc.
Question
.Dan
Hi guys, I am running into some problems when I retrieve my users in a Ruby on Rails application. Everything is working great, but when I try to do a before_filter :get_users the app is crashing due to an error of mine in the logic. I want to retrieve all users that belong to a certain institution, using this models:
Can please someone help me out I've tried everything without any luck. Thank you in advance.
Link to comment
https://www.neowin.net/forum/topic/1078353-ror-database-retrieval/Share on other sites
2 answers to this question
Recommended Posts