Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed country select. Now works with simple_form input.
- Loading branch information
Joost Hietbrink
committed
Apr 13, 2012
1 parent
63df2dd
commit 45419ab
Showing
8 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Simple Form gem custom input (see: https://github.com/plataformatec/simple_form). | ||
# | ||
# Usage (in your simple_form): | ||
# <%= form.input :country_code, :as => :country_code %> | ||
# | ||
class CountryCodeInput < SimpleForm::Inputs::Base | ||
def input | ||
@builder.country_code_select(attribute_name, input_options.delete(:priority), input_html_options) #, priority_countries, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
module AdminInterface | ||
module Version | ||
MAJOR = 2 | ||
MINOR = 0 | ||
MINOR = 1 | ||
PATCH = 1 | ||
BUILD = nil | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/generators/admin_interface/templates/scaffold/view_index.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/generators/admin_interface/templates/scaffold/view_new.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters