Skip to content

Instantly share code, notes, and snippets.

View loso-nd's full-sized avatar

NahumND loso-nd

  • NDConsulting
View GitHub Profile
@loso-nd
loso-nd / Create Employee Component:
Last active November 1, 2023 16:55
Next.JS - React Error: when hitting api (POST 500 (Internal Server Error) )
'use client'
import { useState } from 'react';
import { useSession } from 'next-auth/react';
import { useRouter } from 'next/navigation';
import EmployeeForm from '@src/components/EmployeeForm';
const CreateEmployee = () => {
const router = useRouter();
const { data: session } = useSession();
@loso-nd
loso-nd / upgrading_ruby_and_rails
Last active May 23, 2022 23:32
Upgrade Ruby and Rails
Step 1: ./bin/setup
- Running this command to see where were are at with the application
Step 2:
- In the project within the Gemfile change the following:
gem 'rails', '4.2.5' => '4.2.8'
ruby "2.2.0" => "2.5.0"
- In .ruby-version change current ruby listed as "2.2.0" => "2.5.0"