Ruby on Rails Community Forum
Table join and data retrieve
0
Rails
how can I link user model table with another model table and based on current_user login I want to retrieve data from second table
Deepika posted
Design a store credit schema
0
Databases
Hi, I was wondering if anyone has some experience building a store credit system into a market place style app. Eg: Users could purchase 100USD in adavance and receive 120USD in store credits as in...
gafemoyano posted
Rails 5- jQuery works in local production(rails s -e production) but not on Heroku
1
General
I can run jQuery on local production doing `rails s -e production` but when the same project is deployed to Heroku, jQuery doesn't work and I get an error in the console that says
> "Uncaught R...
Chris Oliver replied
FATAL error on hitting Rails API
1
Rails
Hi,
I am beginner in ruby/rails.
I have a rails api which when curled directly works as excpected.
But, when invoked through vent(wrapper on kafka queue) returns 4xx error. I have verified that ...
Srilekha Thirumalaisamy replied
ActionController::InvalidAuthenticityToken error
0
Rails
Hello,
I'm getting ActionController::InvalidAuthenticityToken error, even after sending csrf token in the post request.
On which cases, do i get this error can anyone please enlighten me.
Thanks.
ravitej177 posted
Any chance we can get a video on how to use a js cropper and using active storage
0
General
There really dosent seem to me good documentation any where on how to crop images with active storage, I know it can be done just seems pretty complex and would be a cool video
Corey Gibson posted
Upgrade to Mojave on Mac OS
5
Rails
Hi Chris - I am running Sierra (not high Sierra) on my fairly new Mac (summer 2017). I need to upgrade to Mojave and am afraid I will break my ruby/rails dev environment (like I did when I upgraded...
Chris Oliver replied
My app keeps crashing
0
General
Hello all,
I am new to rails and was hoping someone could help me out. I built an app and at first it said it couldnt find Ruby so I reinstalled it, then it said compiling error so I updated the b...
donaldlund2010 posted
How do we show dynamic data in .erb file like from a json file?
0
Rails
I have a view file index.html.erb in my view folder and there I am showing some data in the form of Table(bootstrap table) and this is a static table so I had to write so many lines of HTML for thi...
theshashiverma posted
Improve on these ActiveRecord requests?
4
Rails
I am trying to get the top 5 products, based on the impressions that product has recieved.
Now the code below is working ok, but its not in the right order, and I cant work out a better way to get...
Alan Reid replied
Is there a better solution that Paperclip to manage profile pictures ?
5
Gems / Libraries
Hi everyone,
I'm asking this question because it seems pretty hard to setup, between Image Magick and all the mecanics there is to put to work... I saw there was another solution Carrierwave but w...
Damian Nelwep replied
Do I have to create a controller for users using Devise or where can I find its actions ?
2
Rails
I'm having some trouble setting up Paperclip gem to setup profile pictures for the users of my app and I need to access users_controller. Since I'm using Devise, I don't really know where I can fin...
kadammanali987 replied
How to optimize the work of clients from different countries?
1
General
My server is located in Norway. My clients live in Norway, Japan, Hong Kong, USA and South Africa. Due to the fact that the server is located in Norway, the ping for customers is very long. I'm usi...
xxx44yyy replied
Professional grade authentication with a single command (in rails 5)
2
Rails
I've built authentication a few times now, and every time it's been 99.9% the same (save for a few tweaks in form validations etc). The machinery has been more or less identical to that found in th...
S C replied
How might I handle event-sourcing?
2
Rails
I've *never* been happy with the way I've implemented certain kinds of features:
* Notifications
* Some kinds of reporting
* Activity Feeds
Then, I saw two things:
1. The "bucket/recording" patter...
Chris Zempel replied
Easy Autocomplete
0
Javascript
Hello everyone I was using easy-autocomplete plugin for my project and its working well thanks to this site but I reilised this plugin can put html tags too and I cant avoid html tags injections. A...
Mehmet Şamil Büyükçağlayan posted
How update value which run from strong params??
1
General
I have action(strong parameters) in controller:
```
def home_task_params
params.require(:home_task).permit(:subject, :description, :data)
end
```
i want do something similar to this
```
def c...
Ryan Mindigo replied
Raisl 4 : Exception Site(#70058148983820) expected, got String(#8388700)
0
Rails
I have a form with a selectbox which allow to select differents values. When I want to save the form I have an exception :
ActiveRecord::AssociationTypeMismatch at xxxxxxxxxxxxxxxxxxxxx
S...
Laurent Passebecq posted
Trying to setup a Telegram bot, sorted everything out, but have one error
0
Ruby
If you are experienced with CMD, Ruby, NodeJS and Windows 10 then please help.
Error: https://i.gyazo.com/23c684b3788c3190d7a81f53bb828e30.png
I've run the commands that are displayed to resolve t...
Danny Woodward posted
How to get param values through radio_buttons ?
2
General
I'm trying to create a TARGET with a responsible user via form_with:
```
<% @users.each do |user| %>
<%= f.radio_button :responsible_id ,'', id:"responsible-manage-#{user.id}", c...
rodolfo replied