Ruby on Rails Community Forum
Links not working on production server
9
Servers
I'm at a loss. After finally successfully deploying using Capistrano, and finally figuring out why my assets were missing, I have another issue. I have a link that point to static pages (contact)...
Chris Oliver replied
Must Read / Must Watch
19
General
I thought I'd start a thread of articles and videos that are super high quality for software developers. Things that make you think and improve your thinking and how you build products.
I'll start...
emil mircea replied
API Design Decisions
7
General
I'm designing & building an API for a company and have arrived at a decision point I can't figure out.
we're providing access to records. right now they want to quickly integrate with one clie...
shakycode replied
Idea for TimeClock Need Advice
27
General
I'm wanting to integrate Time Clock functionality into an existing Rails 3.2.21 app. I think I have an idea of how to do this, but I need some advice on the how to handle different scenarios.
So ...
shakycode replied
Render \r\n in javascript.erb
4
Javascript
HI,
I try to add the value of a text field in a form from a other database field.
I use the following javascript
```javascript
$("#assignment_conditions").empty();
$("#assignment_conditions").val...
Chris Oliver replied
Ideas for building a Wiki in my app
12
General
My users are all internal customers of our business. They are pretty information poor when it comes to our systems and processes and our company intranet is not very feature rich. So I'd like to bu...
shakycode replied
Using Devise in Consumer App
4
Gems / Libraries
I have two applications. One is Rails API consumer app and another is a legacy PHP one - which responds with JSON API. APIs are used for user registration and login. Can I use Devise for authentica...
rabin prithvi replied
Non Restful actions in the controller
6
Rails
I originally asked this question about building a reporting feature in my app https://gorails.com/forum/advice-on-building-a-reports-feature.
I'd like to simplify this question even further. I wan...
shakycode replied
Select Form Helper Required True Not Working
3
Rails
I'm doing a very simple select field in a form which looks like this:
`<%= f.select :phys_option, options_for_select([["N/A", "n/a"], ["No", "no"], ["Yes", "yes"]], :selected => @run.phys_op...
shakycode replied
How to add records to has_many :through association
5
Rails
I have three models called Site, Model and ModelSite as shown below. If i create a new model_site i can choose a site and model to save which works good but what i need help in is how can i choose ...
Wes replied
Deploy and delete text!
2
Servers
Help! When i deploy my app from local machine to vps, my local image, text and another information have been deleted! How can i fix it?
shakycode replied
Set field on multiple records on save/change of 1 record
3
Rails
I'm working on a maintenance planning/cost application. With the help of gorails, onemonth, codeschool and all other great resources I am almost ready to launch the first release. However I can rea...
Chris Oliver replied
Advice on building a 'reports' feature
9
General
My Ruby on Rails enterprise app has a whole range of tables ranging such as customers, products, sales, warehouses, prices etc etc.
I'd like to build a whole range of different reports that users ...
Daniel Chapman replied
How to make a good Sidekiq job?
2
Gems / Libraries
From the [Sidekiq wiki](https://github.com/mperham/sidekiq/wiki/Best-Practices#2-make-your-job-idempotent-and-transactional), a Sidekiq job should be idempotent and transactional. How should we imp...
shakycode replied
Flexible Nested Attributes
5
Gems / Libraries
I'm working on a practice "Magazine" application, that has **Issues** with nested attributes of **Articles**, which has multiple nested attributes that are **Content Blocks**, which can be one of s...
Chris Oliver replied
Flexible Nested Attributes
0
Rails
I'm working on a practice "Magazine" application, that has **Issues** with nested attributes of **Articles**, which has multiple nested attributes that are **Content Blocks**, which can be one of s...
Terence Devine posted
Simple newsletter sign up?
17
Rails
Hey Chris and all other members of this forum....
I'm trying to create a single page rails site, for a new app that i'm trying to build myself (it's called Nibli, and it's on nibliapp.com).
I've ...
shakycode replied
Mobile App with Devise Facebook OmniAuth
2
Gems / Libraries
My Rails 4 app is using Devise and Facebook OmniAuth. The web app is working perfectly. Now I want to make a iOS app to consume my rails app's API.
Instead of telling iOS users to type in their a...
shakycode replied
Import CSV data using RubyZip and Postgresql COP
7
Gems / Libraries
I've checked out the videos on importing data to your rails app. Very timely as I am deep into this feature bringing data from all our legacy systems into my rails app.
My issue is I am importing ...
Chris Oliver replied
Nested attributes with collection_select not saving
11
General
In my edit form I simply cannot figure out why collection_select isn’t saving the various values when it's nested. It works fine if I use a {multiple: true} and pull it outside of the fields_for ev...
Sean M replied