songtianlun
e5743a5e3f
- Integrate 'friendly_id' gem for sluggable functionality in City model - Create ActiveAdmin resources for managing cities and weather arts - Implement controller logic for cities - Add database migrations for cities and weather arts creation - Seed database with sample data for testing - Create initial test cases for controllers and models This commit enhances the application's URL handling by allowing friendly URLs for cities and weather arts. The addition of ActiveAdmin resources facilitates easier management through a web interface.
9 lines
186 B
Ruby
9 lines
186 B
Ruby
require "test_helper"
|
|
|
|
class WeatherArtsControllerTest < ActionDispatch::IntegrationTest
|
|
test "should get show" do
|
|
get weather_arts_show_url
|
|
assert_response :success
|
|
end
|
|
end
|