Save 36% for Black Friday! Learn more

All threads / Basic Authentication and RSS Feeds Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Basic Authentication and RSS Feeds Discussion

Is this functionality on the current gorails.com site? I'm not seeing it.

Edit, had to enter the url manually: https://gorails.com/episode...

It should be in the top right if you click on "Account" in the navigation too.

Reply
Rails Duck ·

How do you put in Wistia videos to your Rails Server?????

I'm just storing the wistia video ID in Rails and then embedding the videos.

Reply

Hey
May I ask how would you implement a simple authentication form (simple password field) to filter private pages, for private photo album/info/etc per say ?
Click the link -> form -> load password protected page if password is true.

You could basically store a hashed password on the album and then prompt for the password. When they type in the password, run it through the same hashing algorithm (check out bcrypt) and if the hashes match, you can set a cookie letting the user view the page. This is basically how email/password logins work.

Reply

Where is it reading the episode data from?

@episodes is the instance variable you'd set in the controller just like you normally would when printing out the index.

Yes but where, physically are you storing the episodes? Do you keep them on your server, through a hosted service?

Oh yeah :) I use Wistia to host them all. They upload them to S3 (or wherever they use) and probably serve the files up through a CDN. I let them handle it but if I were to do it myself I would use S3 and CloudFront probably.

Reply

This doesn't seem to be working for me. I;m using:

 @articles = Article.all.order(post_on_date: :asc)

    respond_to do |format|
      format.rss
    end

but I keep getting ActionController::UnknownFormat in RssController#index

Never mind. I got it figured out! Thanks for this!

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 39,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.