Search Results for "how-do-it-zoom-photo-insagram-fb"

Lessons





















Forum Threads

User Avatars with ActiveStorage Discussion

13
General
Hi Chris, great episode. I posted a question about ActiveStorage but I have not received any response yet. Basically what i want to do is upload images for a has_many_attached directly from a contr...
TilakP3811 replied

SEEKING FREELANCER - Javascript configuration

17
Javascript
I have been trying for 4 years and 3 months to try to setup a basic rails app. I have bought 10+ books, subscribed to this and several ohter subscription services to try to learn the basics of rai...
Melanie replied
Solved

How do I test the order of elements on a rails app page with Rspec / Capybara?

3
Testing
I have a 'Team' index page and I just want to TDD the ordering of the elements on page. My instructions are to validate they are showing most recently created first. I know how to do the actual i...
Russell Beckwith replied

(Active Storage) How to check for an existing blob in another AWS bucket?

1
Rails
Hi there, I'm trying to do something quite simple, which is: - A user uploads a video to a chat (a message can have many attachments) - The video uploaded automatically gets transcoded with Elast...
Chris Oliver replied

Rails for Beginners Part 32: Edit and Destroy Tweets Discussion

13
General
Oddity I'm running in to, but can't see why. Once the delete button is added via .persist?, the schedule button ALSO seems to delete the tweet as well (without any warning). If the persisted? is ...
Nick replied

How do I pass params to Active Record Model has_many?

0
Rails
Hello everybody, I have a model: account.rb, with has_many condition like this ``` has_many :purchases, -> { where(available: true, workspace_id: nil).order(id: :desc) } ``` Now I want to pas...
quydox posted

How to use Hotwire in Rails Discussion

86
General
Can you please provide the repository for this also?
Ahmad khatab replied

How do I get the dropdown menu to show the selected after the page refreshes

0
Javascript
Hello ~ I have been trying to figure out how to get the dropdown menu like the one in this forum to show the category after the page refreshes ~ I have been trying to do it using javascript and boo...
JP posted

How do I calculate a computed value in a model when showing or indexing over that model in its controller?

1
Rails
I'm new to Rails but not new to programming or webdev. I have a `Student` model that uses a service object to pull data from Google Cloud Firestore for its `level` attribute, an integer. I have ho...
Jordan T-H replied
Solved

Introduction to Stimulus Reflex Discussion

43
General
woooooo... this is sooooo cooool. Thanks Chris for all the good content you giving us 👏. You making likes Rails every days. Respect 🙏
Jason Eastwood replied

Is it a good practice to call third party api before every controller action?

4
Rails
Is it a good practice if we can call a REST api on `before_action` hook of `application_controller.rb` and store the response in helper method? My Scenario is that I wanna call an API from another...
Ali Ahmed replied
Solved

How do I send params from Rails Ajax to the controller???

5
Rails
I am trying to send all the params from the form into my controller after a promise my params include :name , :email , :address_line1, :address_city, :address_state, :address_zipcode, :address_cou...
Chris Oliver replied
Solved

Deploy Ubuntu 20.04 Focal Fossa Discussion

40
General
Thanks for the guide. There is an error installing NGINX on Ubuntu20.04: "The following packages have unmet dependencies: libnginx-mod-http-passenger : Depends: passenger (= 1:6.0.4-1~bionic1) but...
deyes19 replied

How do I integrate Uppy.io or Dropzone.js into Rails with ActiveStorage?

12
Gems / Libraries
[Uppy](https://uppy.io/) and [Dropzone](https://www.dropzonejs.com/) and popular js libraries that provide rich user experience for file uploads. ActiveStorage supports the integration of such libr...
Ivan Raszl replied
Solved

How do I subscribe action cable receiver to a new stream without resetting the entire channel subscription?

1
General
I have an inbuilt chat service on my application. A signed in user will select another user to start a conversation with them. How can I send stream for this new conversation to the 2 users without...
Nathan Chalot replied

How to use Action Mailbox in Rails 6 Discussion

24
General
This is great! Can action mailbox be used with a gmail account or does it have to be one of the services listed?

Adding an inline style to a Datetime_select field in simple_form

3
Rails
How do I add an inline style to a Datetime_select field in simple_form? What I would like to have worked (this is in Slim): `= f.datetime_select :published_at, style="width:auto;"` but this isn't...
ramzieus replied

How do I process request with parameters

2
Rails
i am new to ruby on rails, just run the examples https://guides.rubyonrails.org/getting_started.html#installing-rails I just wonder if I want list all the articles with certain string in the title...
mike zenon replied

How do I create an app with Urls like 'https://username.website.com/' instead of 'https://website.com/username/' ?

17
Rails
Hello everyone, I searched but didn't find anything and was hoping like I said in the title of this subject, to find a way to get the url displaying a user's profile of a client's app to be like u...
Chris Oliver replied
Solved

Search Filters with ElasticSearch Aggregations Discussion

21
General
This has been very helpful for a project I'm working on. Thank you. On mine, I wanted to add checkboxes to be able to select multiple keys. For anyone else looking to do the same, the solution I ca...
Lucas Moraes replied