Ruby on Rails Community Forum

Administrator creates user accounts with Devise gem

0
General
I have a project with Devise gem. I need to create a user with the admin account. If I am logged in with the admin account I can not enter the path / sing_up. How can I access this page?
Nicolás Bobb posted

Mention

1
Rails
hi Chris Oliver on the @mentions episode can you share the css you use to show both user name and profile picture? Thanks
Chris Oliver replied

cancel actioncable connection for unauthorized users?

0
Rails
Followed the series on action cable notifications and setup the meta tag so that action would not try to connect if the meta tag was present. Here is my code. ``` $(document).on("turbolinks:load"...
Matt Taylor posted

Mailboxer: How to attach a file when starting a new conversation

0
Rails
I am using the Mailboxer gem. When creating a new conversation, the message that is created at that point is does not attach the file I am uploading. new.html.haml = form_tag conversations_path, m...
Mehdi Mehrtash posted

How do I add multiple attachments to Mailboxer?

0
Rails
I am using the Mailboxer gem. I have enabled multiple file uploads for the attachment field. What is the best way to set up my controller so it saves all the attachments? Would making a new model c...
Mehdi Mehrtash posted

Is Actioncable + Redis compatible with APN's?

0
Rails
I built my chat app using rails actioncable and than was able to make an ios app that pulls the conversation and messages. Everything works fine. My question is, is it possible to set up apple p...
Masud Hossain posted

What are the advantages/disadvantages to using Rails with AngularJS?

3
Rails
Came across a tutorial for using Devise authority tokens in a rails API, however are there any other reasons to use AngularJS and Rails? Advantages or disadvantages? The AngularJS with Rails tut...
Tabish Iqbal replied

Polymorphic relationship vs STI vs Class table inheritance with RoR

4
Databases
Hi I watch your tuts and it's pretty helpful. Always thanks! I have some question about database design. There are three types of invoice items with following tables 1) **SubscriptionItems**, 2)...
Unknown replied

Can someone help explain how to use test_double to mock a gem class in my app?

7
Testing
Hello, My app uses a gem that goes out to network devices. I want to write some specs that test my classes without going out to the network devices via the gem. I want to use test_double or some...
Bill Snapper replied

Search all models gem

2
Gems / Libraries
I have seen this done in other rails application where you can search for a term and it would search across multiple models and return results from each. What is the best gem to use for this purpos...
Chris Oliver replied

ActiveRecord

3
Tips
Rails console: Memoization seems to be a pretty awesome resource.
eminkel replied

Incorporating an Admin Dashboard

1
CSS
Hi All Say you've found a sample Admin Dashboard web site. Its delivered as a 'skeleton' html.css app. In order to use it one needs to 'port' (for lack of a better term) - all the necessary reso...
JM replied

Does actioncable create 1 channel per user only?

3
Rails
Let's say you're planning on having real time Notifications and messaging. Does that mean that for each User, there will be 1 actioncable channel (redis) open? Or Does that mean for each Use...
Chris Oliver replied

How do I get e-mailed password change and confirmation links working with devise-token-auth and ng-token-auth?

0
Rails
I am trying to use ng-token-auth (Angular 1) on a separate frontend to allow passwords to be reset and account e-mail addresses to be confirmed on a Ruby on Rails 5.0 backend. Whenever I request a...
Robert King posted

Missing partial error even though lookup context comes back as true.

3
Rails
I'm getting a missing partial error even though my lookup context check comes back as true. My partials is in `views/activity_feed/` and is named `_appointment_set.html.erb` ``` <% @activities.e...
Jacob Montgomery replied

Whats the gem I can use for Tokenize Field?

1
Gems / Libraries
It would have been great to receive a tutorial on Tokenize inputs. Thanks.
Mirza Selim Reza replied

How to version model validations for an API?

0
Rails
Some thoughts on API versioning: Why is API versioning necessary at all? It is required for when we want to make some breaking changes to an API endpoint, like stop accepting certain parameters o...
TRADEO posted

I want to understand how basecamp separates account?

3
Rails
Is part **3319000** of url 3.basecamp.com/3319000/projects just a show action in the controller or is there implemented by gems? Will be great to see some examples. Sorry for my english.
Dan LeGrand replied

How do I add a default time of 6:45pm to simple form / DatePicker

1
Rails
Hello Folllowing on from the prev 2 posts , How do i add the default time of 645pm in the form. So when someone craates the form a default time of 645 is already setup. I am using simple form and...
david gonzalez replied

Multistep Signup-Form

2
Rails
Hi there, do you know a elegant and quick way to create a signup page like cloud9 have? https://c9.io/signup Thanks a lot in advance!
shakycode replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.