On Sun, Oct 15, 2017 at 10:49 AM, Ben Edwards wrote:
> Great, thanks, almost there. Mine is slightly different as its not based on
> CRUD, its a ruby view based on a SQL view.
Irrelevant. You can use any parameter and controller method names
you choose.
--
Hassan
Aslo *http://localhost:3000/upcoming_events/cost* works but not
*http://localhost:3000/upcoming_events/cost/cheapevents*.
On Sunday, October 15, 2017 at 6:50:08 PM UTC+1, Ben Edwards wrote:
>
> PS I also tried
>
> get 'upcoming_events/cost', to: 'upcoming_events#index'
>
>
> On Sunday, October
PS I also tried
get 'upcoming_events/cost', to: 'upcoming_events#index'
On Sunday, October 15, 2017 at 6:49:10 PM UTC+1, Ben Edwards wrote:
>
> Great, thanks, almost there. Mine is slightly different as its not based
> on CRUD, its a ruby view based on a SQL view. So
>
> get
Great, thanks, almost there. Mine is slightly different as its not based
on CRUD, its a ruby view based on a SQL view. So
get '/patients/:id', to: 'patients#show'
Is not quite what I need. If I have this view as root view
(http://domain.tld) and want to pass cost as a variable
On Sun, Oct 15, 2017 at 6:39 AM, Ben Edwards wrote:
> I came across something years ago (I think in PHP) where URLs got unpacked
> into varables in the background. So
> https://eventpuddle.com/price/cheapevents was mapped in the background and
> created a varable price
your like '%Tampa% will not use an index. Looks like you are implementing
some type of search. For this type of free text search SQL is not a good
option. Elasticsearch is worth looking at or goodle for 'rails free text
serach tools'.
Ben
On Thursday, October 12, 2017 at 3:17:04 PM UTC+1,
OK, so I have a homepage and want the user to be able to select a link that
goes back to it with a varable set. Example here is the listings site
lists all events regardless of price and I want users to be able to list
events under £5. So I have a link https://eventpuddle.com?price=cheap.
I have been using ruby mine I find the productivity gain is sugnificant.
Mainly due to the source level debugging. The main reason is you can
easily look at the values for all the varables. you dont have to decide
whitch ones to look at and add print statements. Using print statemenet I
Sqllite is not really apropreate fro production systems. Personaly I would
use Postgres, its performance is on par with MySQL and seems more robust
and fully features. i would imagine the mgrations can only throw errors
from the database engine. The fact that SQLlight does not throw an error
Install nginx, start and enable nginx successfully but when point to
server http://server_domain_name_or_IP/ but not able to see default CentOS
7 Nginx web page.
I am following this guide
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
.
when i point ip
10 matches
Mail list logo