Best way to grant a user specific permissions
5
Rails
Trying to determine which way I should handle this.
Normal User adds a post to our system, he then has the ability to update and delete this post. In the future he may assign other users the abili...
Brent C replied
Token Auth API with Devise
6
Gems / Libraries
I just watched your screencast on using Devise for user authentication and learned quite a bit. However, I not only want to create a web app but I'd also like to provide a JSON API as another way ...
Chris Oliver replied
Capistrano deployment errors
6
Servers
Hi,
I installed the working_hours gem to calculate SLA hours on my ticketsystem. It all works on dev so i was ready to deploy it to the production machine with capistrano
now i get the following ...
shakycode replied
Errors Following the Deploy Rails Tutorial
18
General
I am literally following the Setup and Deploy tutorials line for line. I have my local dummy rails app up and running and I am trying to run my first deploy to DigitalOcean. Here is the error I a...
Chris Oliver replied
problem with like link in nested resource
3
Rails
Hi Chris im doing the episode 'liking posts' i have difficult to do with deep nested resource,
my actual nested resources looks:
A. Routes:
```ruby
resources :users do
resources :catalog...
Chris Oliver replied
Performance increase over group_by
6
Rails
How can I write the below operation, being handled by _group_by_ Ruby method, in terms of DB specific query?
```ruby
def list_users
@search_by_options = [:age, :location, :department, :desig...
arup rakshit replied
Subdomains
4
Gems / Libraries
Let's say I have a scaffold called 'blogs', and blogs have an attribute called 'subdomain'. I want to have each blog be hosted at a subdomain; let's say I have a blog with a subdomain of 'gorails',...
Jon Moss replied
(for developers)How much would it cost to develop a rails app?
1
General
I know there is a huge range on how much rails app would cost, Just ballparking, how much would it cost to develop a web app with subscription services for access to video content and email with d...
Chris Oliver replied
2 submit button in 1 form
3
General
Hi Chriss,
Would like to ask do you have any plan to make a video about 2 submit button in 1 form for example Save as Draft & Publish button when creating a post?
Chris Oliver replied
Solved
Is there a well-liked solution for handing nested model forms?
6
Gems / Libraries
I am not sure what the consensus is on the best approach to handling nested model forms is.
The solution in https://gorails.com/episodes/forum-nested-attributes-and-fields-for can work, but doesn'...
Rutul Dave replied
Deploy Rails
9
Servers
Hi . Can you help me ? When i start : cap deploy production, i have errors:
1. rake stdout: Nothing written
2. rake stderr: syck has been removed, psych is used instead
How can i resolve them?
Artem Kiryanov replied
How should I model this situation?
2
Rails
I need to store different metrics about various companies. These will be present for every company:
* revenue
* ebitda
* cash
* receivables
* employees
* debt
each one has attributes such as...
Chris Oliver replied
Texteditor
2
General
Hello! Can yoy help me? I have Ruby 2.1.3 and Rails 4.1.7. I use gem ( https://github.com/spohlenz/tinymce-rails ) and I do everything as it says, but i when paste this code: <%= tinymce %> i...
Chris Oliver replied
Devise Filter chain halted as :require_no_authentication rendered or redirected
14
Gems / Libraries
I have an app with Rails 3.2.20 and Devise 2.1.2 (Yes I know it's old) and there are random occasions where a user will trigger a URL i.e. `site.com/calls` and I will receive an error in the `produ...
shakycode replied
Passenger Spinning down in Production
5
Servers
My favorite combination of Rails/HTTP is Nginx + Passenger. They work wonderfully together and it's been super easy to setup across all of my apps. One thing I've noticed in some of my apps that ...
shakycode replied
Associating Radio Buttons With Specific Field Subsets In Rails
1
Rails
**Situation:** A user enters the name of a venue they want to add. I query an external API and get back a list of possible venues they actually meant, which they'll then confirm. The venue model wi...
Chris Oliver replied
rbenv: bundle: command not found
15
Servers
I'm trying to deploy my Rails app on my Digital Oceans VPS but I'm running into a error:
Running `cap production deploy` ends up with this error:
INFO[7cd03924] Running ~/.rbenv/bin/rbenv exec b...
shakycode replied
setup Postgres user fails
8
Databases
Hi,
I'm following the Deploy Rails guide
I'm now a the part where Postgres gets installed. I successfully installed Postgres, but when I try to create a new Postgres user with:
createuser --...
shakycode replied
could not connect to database postgres
2
Databases
I'm trying to install postgresql but I'm running into an error when I try to create a user:
createuser: could not connect to database postgres: could not connect to server: No such file or dir...
shakycode replied
Capistrano deploy removes tables from database.
3
Databases
I use capistrano to deploy my Rails app to my VPS, but after every deploy when I visit my page I get an error. The log says:
I, [2014-11-04T08:20:16.659289 #12482] INFO -- : Started GET "/" for...
shakycode replied