What is the complexity of active record Model.columns or Model.column_names
operation on rails?
Basically I have an option of either hard coding it like that:
do_something(:column_name1)
do_something(:column_name2)
do_something(:column_name3)
or I can do that as following:
columns = Model.colum
I'm using meijer's geosearch in a leaflet map. It was working fine but I've
suddenly broken it and I don't know how. The maps still appears, but the
search box doen't appear in the map. The code that breaks the app is:
new L.Control.GeoSearch({
provider: new L.GeoSearch.Provider.OpenSt
On Wednesday, October 21, 2015 at 7:11:05 AM UTC+1, Dave Ekhaus wrote:
>
> Hi All.
>
>
> Within the 'success' callback of a $.post call - I'm trying to reload the
> current page (here's a pastie -> http://pastie.org/10496733)
>
>
> My 'post' call works and now I'd like to refresh the page. Pl
On Friday, 16 October 2015 03:37:03 UTC-4, Ruby-Forum.com User wrote:
>
> I am having a devise user model.
>
> To login I am using twitter-bootstrap modal.The modal is by default
> hidden and shown only after an rails default ajax request is send to the
> server.
>
> It works fine with localh
If you have a call to set the location, followed by a location.reload, what URL
do you suppose the second one will use? Try commenting out that reload, and see
if it works then.
Walter
On Oct 21, 2015, at 1:58 AM, Dave Ekhaus wrote:
> Hi All.
>
>
>
> Within the 'success' callback of a $
First of all you should give a rigour definition of "newly_created?". I
mean, what should we consider "newly created"? A record created 1 second
ago? 10 mins ago, or 1 day ago?
On Wed, Oct 21, 2015 at 12:02 PM, Colin Law wrote:
> On 21 October 2015 at 07:42, Eugene Gilburg
> wrote:
> > Severa
I have just wrote and published a little open source ruby gem for rails
app, that can help you to test your controllers of active admin using rspec
and factory girl.
Feel free to star mark at github page to keep me motivated to update this
project:
Github page: https://github.com/sadaf2605/nested
On 21 October 2015 at 07:42, Eugene Gilburg wrote:
> Several times I found myself of need of a method that tells whether an
> ActiveRecord instance has just been created. For example, when writing
> generic activity logging code that needs to know whether model is newly
> created as opposed to upd
8 matches
Mail list logo