charly / nexter Goto Github PK
View Code? Open in Web Editor NEWIt wraps your model with an ordered scope and cuts out the next and previous records
License: MIT License
It wraps your model with an ordered scope and cuts out the next and previous records
License: MIT License
Hello.
I'm trying to use nexter and siphon with Rails and have a question.
I have a regular controller with index, show, edit, etcetera and have added a before_filter like your example.
My questions are where does "params[:book_search]" come from for actions such as show and what is the BookSearch class?
I had though that maybe BookSearch was similar to OrderForm in siphon. But now I'm not so sure. I hadn't planned on putting a form in my views other than index.
Thanks in advance for any clarification.
I'm using nexter on a project which needs sort by time (published_at
) and name of a model - Entry. But, the next breaks when the name contains a single quote.
ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "s"
LINE 1: ...= '2017-04-14 18:06:46 UTC' AND (name > 'children's book Ill...
^
And the query generated is
SELECT "entries".* FROM "entries" WHERE "entries"."feed_id" IN (113629430, 980190962, 298486374, 980190966, 980190972, 980190964) AND (published_at = '2017-04-14 18:06:46 UTC' AND (name > 'children's book Illustrator' OR name IS NULL) OR (published_at < '2017-04-14 18:06:46 UTC')) ORDER BY published_at desc, name asc LIMIT $1)
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.