Search Results for "how-do-i-create-an-rspec-double"

Lessons





















Forum Threads

GitHub Actions with Ruby on Rails: Setting up Continuous Integration Discussion

19
General
Congratulations on the video was very good, I will try today
Ignacio Alonso replied

How do i write a test case using rspec for private method

1
Rails
Hello I,m new to rails I am writing test cases for using rspec gem In my controller I have edit function. I have before action for edit function **This is my controller** ``` before_action :aut...
Kasey Sk replied

How to add Notifications to Rails with Noticed Discussion

35
General
Awesome gem, I had been thinking on how to integrate all types of notification from rails app, from web notification, emails and Push Notifications. I guess Push Notification is just an API call (f...
Alan Kirk replied

Import CSV data using RubyZip and Postgresql COP

7
Gems / Libraries
I've checked out the videos on importing data to your rails app. Very timely as I am deep into this feature bringing data from all our legacy systems into my rails app. My issue is I am importing ...
Chris Oliver replied

Sending emails with Mandrill Discussion

49
General
Excellent tutorial. Congrats.
Stan X replied

Workflow for TDD/BDD on Rails ?

1
Testing
Hi, I'd like some feedback if possible about the workflow of TDD/BDD on a Rails app. I was doing a research the whole weekend trying to find some good examples on how to do porperly TDD on my Rails...

Setup Ubuntu 13.04 Raring Ringtail Discussion

66
General
Hi there,when installing ruby using rbenv, at the step of "rbenv install 2.0.0-p195", it shows the results below:Downloading ruby-2.0.0-p195.tar.gz...-> http://ftp.ruby-lang.org/pu...BUILD FAILE...
Someone replied

Ideas for building a Wiki in my app

12
General
My users are all internal customers of our business. They are pretty information poor when it comes to our systems and processes and our company intranet is not very feature rich. So I'd like to bu...
shakycode replied

Sign In With Twitter using Omniauth and the Twitter gem Discussion

37
General
Excellent episode Chris! 2 off-episode questions: why does your version of Chrome have a "People" menu and any chance you'll post this to github?
Someone replied

best way to validate URL

3
Gems / Libraries
Hi Chris! I've been looking for a good URL validator for a while, but all the solutions I found are kinda weird, so I'm not even sure if I wanna use any. Here is my usecase: A user can create a p...
Chris Oliver replied
Solved

Default Order of Associated Model Collection?

5
Databases
Hey all, I'm working on a side project where I recently switched from SQLite to Postgres in preparation for deployment. So, I replaced the `gem sqlite3` with `gem pg` in my Gemfile, ran`bundle i...
Chris Oliver replied
Solved

Looking for Rails work? / Hiring Rails developers?

52
General
Similar to the Hacker News thread, I thought we might start up a thread for anyone looking to hire a Ruby / Rails freelancer or if you're a freelancer looking for work. *Please lead with either SE...
Azmat Ulhaq replied

My Development Environment Discussion

26
General
Vim tip: you can type :help [command] and vim will tell you what that command does. sometimes these descriptions can be so descriptive they're sort of confusing.the one that saved me SO MUCH time, ...
Arthur Cheek replied

Domain & Subdomain Routing Constraints in Rails Discussion

9
General
@Chris !!!! THANK YOU! I've been at this all day working with acts_as_tenant. Had some issue with some "undefined method `arity' " error when I added the acts_as_tenant(:account) to a model. Not...
bradnealy replied

Authorization with Pundit Discussion

28
General
It is really helpful. I've also seen CanCan. But I'm little bit confuse, which one should I use? Do you have any suggestion? Beside this I've a request that it'll be very helpful, if provide a vide...
Liam replied

How do I create an input field for a polymorphic association?

7
Rails
For the sake of this question, lets assume I run a hotel and I want to make a system that manages the bookings of my hotel rooms. While most of the time I book `Guests` in my hotel rooms, `Employe...
Solved

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

How do I create an attendance form for student attendance?

9
General
I've been racking my brain and just need to ask for help on the creating this function in my app. **Scope:** simple app for non-profit for tracking student attendance What I've done: * created the...
Solved

How Do I Create an App Where Each User Has A Separate Table

3
Databases
Hi, I want to create a web app which is a simple HR SaaS. Each user/company which registers will have get a separate table to upload list of employees. In terms of autorization a user/company can ...
Tabish Iqbal replied
Solved

How do I publish an RSS feed from my rails app?

2
Rails
I have a simple blog setup with a posts model. Is there a gem that can publish a feed or should I create thus from scratch?
Stan Smith replied
Solved