[Rails] Mongoid error

2015-06-08 Thread Cristiano de Araujo Bezerra
i need to create a document to see my app running this code (products/index) generates the error: td%= link_to Category.find(product.category_id).name, category_path(product.category_id) %/td folow the code: https://github.com/webofbits/ninjastore

Re: [Rails] Scope and precedence of CSS definitions?

2015-06-08 Thread kenatsun
On Monday, June 8, 2015 at 6:29:12 AM UTC-4, Frederick Cheung wrote: It's trying to discourage you from adding straight to application.css - it creates clutter. You can setup an entirely separate manifest (I've commonly see applications have a separate admin.css) and then change

Re: [Rails] Mongoid error

2015-06-08 Thread Colin Law
On 8 June 2015 at 21:30, Cristiano de Araujo Bezerra webofb...@gmail.com wrote: ... this code (products/index) generates the error: td%= link_to Category.find(product.category_id).name, category_path(product.category_id) %/td You have told us it generates an error, but not what the error

[Rails] SSL errors with open()

2015-06-08 Thread j...@via.net
I have web site that open ok in the browser - no errors or warnings about the certificate. When I open it with open(), I get the following error: /Users/joe/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:931: `SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate

[Rails] Rails association in concerns

2015-06-08 Thread Nicolò Benigni
0 down vote favorite I am using concerns for my rails application. I've different kind of users so I have made a loggable.rb concern. In my concern I have ´´´ included do has_one :auth_info end ´´´ because every of my user that will include the concern will have an association with

Re: [Rails] Mongoid error

2015-06-08 Thread Cristiano de Araujo Bezerra
i think is not a question of error but a question of what should i do to get the right way. i am tottaly newbie. all that i know is when i clone my app in other computer i get this message. i'd like to know if i can avoid this message. in the image the red text tells me what to do but where i

Re: [Rails] Mongoid error

2015-06-08 Thread Cristiano de Araujo Bezerra
i don't know to to se the Mongoid.raise_not_found_error config option to false Em segunda-feira, 8 de junho de 2015 22:27:53 UTC-3, Cristiano de Araujo Bezerra escreveu: i think is not a question of error but a question of what should i do to get the right way. i am tottaly newbie. all that

Re: [Rails] Mongoid error

2015-06-08 Thread Cristiano de Araujo Bezerra
https://lh3.googleusercontent.com/-aDE9XsbglcU/VXZBvfID_PI/BF0/TYOq7kaOzb8/s1600/Screenshot%2Bfrom%2B2015-06-08%2B22%253A30%253A10.png this is my app running in my personal computer. the category is a link. when i click on it the app takes me to another paage showing all the products

Re: [Rails] Mongoid error

2015-06-08 Thread Cristiano de Araujo Bezerra
when i use just product.category it just show this: https://lh3.googleusercontent.com/-PP9wvO0RW1I/VXZUVaDzOWI/BGE/W62hXVbHg9I/s1600/Screenshot%2Bfrom%2B2015-06-08%2B23%253A49%253A32.png Em segunda-feira, 8 de junho de 2015 22:32:28 UTC-3, Cristiano de Araujo Bezerra escreveu:

Re: [Rails] Scope and precedence of CSS definitions?

2015-06-08 Thread Frederick Cheung
~ Ken There is nothing that says that the styles from users.scss should only apply to pages rendered by the users controller, nor is there an inheritance chain. There *does *seem to be a de facto inheritance chain (or precedence ordering) among my three *.scss* files (in descending

[Rails] Re: Ruby on rails Hosting / VPS

2015-06-08 Thread Mike
You can get offers on lowendbox.com, you can probably find something in Singapore or something for like $10-15 per month normally, but they can sometimes do better. Again, it is all relative, because bandwidth in APAC tends to be more costly than in Europe, or the USA, and because if the way

[Rails] Help with kaminari

2015-06-08 Thread James Davis, PhD
Try implementing the pagination in an ajax-ish manner. This video is a little old but still relevant http://railscasts.com/episodes/240-search-sort-paginate-with-ajax I use AngularJS for my applications, which accomplishes the single page application feel, but becoming proficient at it is

Re: [Rails] Re: Show in text box

2015-06-08 Thread Colin Law
On 8 June 2015 at 17:02, Euan Leslie li...@ruby-forum.com wrote: ... I've found another problem with this. It produces an error if there are no records in the table. The line in my Index view: %= render partial: 'news/news', locals: { news: News.last } % Can I make it just shows a blank

[Rails] Re: Show in text box

2015-06-08 Thread Euan Leslie
Euan Leslie wrote in post #1174549: This could possibly be a really stupid question, but I have a home page which calls a partial to show the latest entry in a table called 'news'. All I want to know is how to put the 'news.content' into a text box. Partial is as follows: p