owen2345 / cama_contact_form Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Is there supposed to be a way to delete responses?
The method on current_site.forms does not exist in the version 2.4.3.10
.
ActionController::RoutingError (No route matches [POST] "/"):
actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:65:in call' web-console (3.7.0) lib/web_console/middleware.rb:135:in
call_app'
web-console (3.7.0) lib/web_console/middleware.rb:30:in block in call' web-console (3.7.0) lib/web_console/middleware.rb:20:in
catch'
web-console (3.7.0) lib/web_console/middleware.rb:20:in call' actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in
call'
railties (5.2.2) lib/rails/rack/logger.rb:38:in call_app' railties (5.2.2) lib/rails/rack/logger.rb:26:in
block in call'
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in block in tagged' activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in
tagged'
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in tagged' railties (5.2.2) lib/rails/rack/logger.rb:26:in
call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in call' actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in
call'
request_store (1.4.1) lib/request_store/middleware.rb:19:in call' actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in
call'
rack (2.0.6) lib/rack/method_override.rb:22:in call' rack (2.0.6) lib/rack/runtime.rb:22:in
call'
activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call' actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in
call'
actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in call' rack (2.0.6) lib/rack/sendfile.rb:111:in
call'
railties (5.2.2) lib/rails/engine.rb:524:in call' puma (3.12.0) lib/puma/configuration.rb:225:in
call'
puma (3.12.0) lib/puma/server.rb:658:in handle_request' puma (3.12.0) lib/puma/server.rb:472:in
process_client'
puma (3.12.0) lib/puma/server.rb:332:in block in run' puma (3.12.0) lib/puma/thread_pool.rb:133:in
block in spawn_thread'
I've made a contact form with no custom rendering: (sorry for a large image)
Then I've made a page containing the form shortcode [forms slug=pew-pew-pew]
And I get this when I open this page.
The labels are translated as it has to be, but description is duplicated.
<p><!--:en-->present yourself<!--:--><!--:es-->presentese<!--:--></p>
As I see in source code gems/cama_contact_form-0.0.12/app/helpers/plugins/cama_contact_form/main_helper.rb the translation is made the same way, but I wonder why it has different output.
def cama_form_element_bootstrap_object(form, object, values)
html = ""
object.each do |ob|
ob[:label] = ob[:label].to_s.translate
ob[:description] = ob[:description].to_s.translate
...
end
html
end
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.