# Citestore Plugin

**URL:** <https://meta.discourse.org/t/citestore-plugin/51620>\
**Category:** Development\
**Created:** [2016 年10 月 16 日 23:56 UTC](https://meta.discourse.org/t/citestore-plugin/51620 "2016-10-16T23:56:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)\
发布日期： [2016 年10 月 17 日 14:15 UTC](https://meta.discourse.org/t/citestore-plugin/51620/4 "2016-10-17T14:15:47Z")

</div>

Try

```plaintext
get '/citestores/:param_a/:param_b', to: 'citestores#show'

```

```plaintext
ajax('/citestores/wark/foo')

```

* * *

Alternatively, can also pass whatever params you’d like through the ‘data’ field with ajax:

```plaintext
ajax('/citestores/1.json', { data: { param_b: 'wark' } })

```

This builds a GET request like this:

```plaintext
/citestores/1.json?param_b=wark

```

which can be picked up in the params on the server side.

```plaintext
params[:param_b] # => 'wark'

```

---

_[View the full topic](https://meta.discourse.org/t/citestore-plugin/51620)._
