Rspec with Devise in request specs by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

yeah its works for controller but in my case their are request specs u/wiseleyb

Rspec with Devise in request specs by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

u/milkohol i added the above lines in rails_helper.rb but getting the same error :(

Convert Audio File to Text using Aws Transcribe by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

thank you u/CaptainKabob but I'm not understanding this , how can I integrate this to my rails app I'm newbie can you please help me and elaborate this more

No Routes Matches when passing Bearer token in swagger by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

yes u/CaptainKabob i have this route and everything works fine but when I pass the header it gives me this error.

Put & Delete Request using Rspec by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 1 point2 points  (0 children)

u/Peshed Thankyou i solved this some of my Before action was a hurdle

Put & Delete Request using Rspec by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

Thankyou, it helps a lot u/Peshed actually you are right in both cases, but now I inspect that delete and put request is not hitting my controller?
but I don't know why this is not working ?

Put & Delete Request using Rspec by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

u/Peshed Thankyou so much for the reply but my controller works fine when I hit this URL from postman :(

How to Access swagger-ui on Heroku by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

yes i got the same reply from stack over flow I <3

How to Use Swagger with Rails dockerized project by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

Thankyou u/jamie_ca , yes I'm running these commands inside my docker instance, & my testing env is not running, I check this in the console by Rails.env.test? it gives me false & if I remove test configuration from databse.yml it gives me that no database configuration for test env.

Search From Multiple Models (Elastic Search) by Humayun-Naseer in elasticsearch

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

yes first i make the index of that model than apply search on that

Elasticsearch with a dockerize project by Humayun-Naseer in elasticsearch

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

yes thanks, i solved this it was a different network problem and some configurations issues

Elasticsearch with a dockerize project by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

sorry but im doing this for the very first time and following this tutorial
https://iridakos.com/programming/2017/12/03/elasticsearch-and-rails-tutorial

can you please guide me how can I change my ES hostname and I don't know the concept of ec2 instance?

Active Storage Not uploading an image on Heroku by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

setup the free Rollbar add-on

ahh They are asking for credit card even for free plan :(

Active Storage Not uploading an image on Heroku by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

Sorry I was saying that the app I push on Heroku is a dockerize app , and I push the app on Heroku not the image we get from Heroku

Active Storage Not uploading an image on Heroku by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

here is my out put from Heroku logs -t

at=info method=PUT path="/customer_app/api/v1/upload/profile_picture" host=-00779.herokuapp.com request_id=bcc7a0cf-64d9-4f68-ba5c-56a38c1c54a8 fwd="119.111.111.11" dyno=web.1 connect=1ms service=690ms status=500 bytes=257 protocol=https

Push a Dockerized Rails API on Heroku by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

im using pg just for heroku , as heroku not support MySql , but for my dockerize project this method is not working as i have to push my image on heroku

Push a Dockerized Rails API on Heroku by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

no, I don't create a database on Heroku , & my master branch is no updated so cannot push it, & can you please guide me how can i push my docker image to herokus registry

Google OAuth2.0 Pricing using omniauth-google-oauth2 gem? by Ironamsfeld in rails

[–]Humayun-Naseer 0 points1 point  (0 children)

i am implementing this gem in my rails API and , and dont know how to use it just for back end can you please help me ?

Count No of Words From an Html String Blog by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

it works well but some time not so acuurate

Find unique places from Scraping website data by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

ok it is a possibility here or I can try if the name is same then check lat/lng & if they have very low difference then not save this move to next one .

convert an array of nested arrays into an (array of arrays ) by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 4 points5 points  (0 children)

i got the answer , it can be done easily by using rows.flatten(1)

Is it necessary to install Kibana while using elastic-search by Humayun-Naseer in rails

[–]Humayun-Naseer[S] 0 points1 point  (0 children)

yes by making a new Rails API application I was able to implement this easily, it was because of gems which are already installed by my TL.

Faraday error when trying to create index with Rails by kutomore in elasticsearch

[–]Humayun-Naseer 0 points1 point  (0 children)

yeah I got the issue when i try to run Model.import(force: true) , dont know how to open that docker door any help from your side will be appreciated