[Rails] css background not showing

2012-10-31 Thread wragen22
Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I've got this in my posts.js coffee file $ - $('.post').hover (event) - $(this).toggleClass(hover) and my index is % @posts.each do |post| % div class=post strong%= post.title %/strong p%=

[Rails] What is Formtastic and SimpleForm gem ? Is any one of this is by default included in Rails ?

2012-10-31 Thread Fahim Patel
Hi all, I read Formtastic and SimpleForm gem. I am using 3.4 Q 1 Is any one of this is by default included in Rails ? Q2 Any advantage of this gems over simple form tags ? As per my knowledge we are using form helper , but still i raised the qustion ? Thanks Regards Fahim Babar

Re: [Rails] css background not showing

2012-10-31 Thread Jim Ruther Nill
On Wed, Oct 31, 2012 at 2:28 PM, wragen22 bradwr...@gmail.com wrote: Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I've got this in my posts.js coffee file $ - $('.post').hover (event) - $(this).toggleClass(hover) and my index

[Rails] why can access https://www.xxx.com. but access https://xxx.com have ssl error

2012-10-31 Thread Grant
I have distribute a rails project. The server is in linode (apache+passenger). But i have strange question. when i access my site use https://www.xxx.com . it can access normally. But if i access https://xxx.com. it will be show a ssl error in page and need you confirm the ssl error and then

Re: [Rails] why can access https://www.xxx.com. but access https://xxx.com have ssl error

2012-10-31 Thread Norbert Melzer
Without to know the actual URL of the server it is not possible to check that, also you are missing what kind of error you get, so I can only guess that your certificate is for www.example.com and doesn't include example . com without www. Am 31.10.2012 08:20 schrieb Grant kucss2...@gmail.com: I

Re: [Rails] css background not showing

2012-10-31 Thread Tommaso Visconti
Il 31/10/12 07:28, wragen22 ha scritto: Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; Any ideas? background: #FAFAFA ?? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

Re: [Rails] css background not showing

2012-10-31 Thread 鍋島 永道
it not work. background: FAFAFA; it work. background: #FAFAFA; 2012/10/31 Jim Ruther Nill jvn...@gmail.com On Wed, Oct 31, 2012 at 2:28 PM, wragen22 bradwr...@gmail.com wrote: Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I've

Re: [Rails] Newbie - deployment, hosting

2012-10-31 Thread Phyllipy Chagas
If you have a simple application, try railsplayground.com it's very cheap and easy to deploy. (you may need some unix knowledge) On 30 October 2012 17:22, yaniv pr yani...@gmail.com wrote: I intend to step out of the 'learner app' zone as quickly as I can :) Thank you all On Tuesday,

Re: [Rails] What is Formtastic and SimpleForm gem ? Is any one of this is by default included in Rails ?

2012-10-31 Thread Jordon Bedwell
Hi, On Wed, Oct 31, 2012 at 1:35 AM, Fahim Patel pafa...@gmail.com wrote: Q 1 Is any one of this is by default included in Rails ? No. Q2 Any advantage of this gems over simple form tags ? For me, most of the time there is not, actually they add overhead IMO (at least for my purposes) so

Re: [Rails] css background not showing

2012-10-31 Thread Jordon Bedwell
On Wed, Oct 31, 2012 at 1:28 AM, wragen22 bradwr...@gmail.com wrote: Hi, for some reason adding the following is doing nothing... Please note this list is for Rails questions, not HTML/CSS questions. .post.hover { background: FAFAFA; FAFAFA is not a valid value for background, and you

[Rails] RecordSelect does not work in nested pages (Rails 3.2.8)

2012-10-31 Thread rails3 champ
RecordSelect(which helps you pick one record out of many) works in Rails 3.2.8 in the main pages but not in the nested pages. I am using active scaffold Does anyone else also face the same problem?? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Sorting in rails 2.3.5 not same as sorting in (Rails 3.2.8)

2012-10-31 Thread rails3 champ
In rails 2.3.5 (with active scaffold) all my columns in display were sorted even though they belonged to a related table. But in Rails 3.2.8 , only columns which belong to the main table are sorted .To sort a related table column we need to specifically add the line below

[Rails] Re: Re: Re: Unable to start the web application from localhost:3000(ruby on rails)

2012-10-31 Thread vipin v.
That looks like the output from rails script/server not ruby script/server Thanks for your observation Colin All is Well now : -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: Rendering a partial with ajax/jquery

2012-10-31 Thread tonypm
From the question you have posed, and the information you have provided, there is not a simple 'do this' answer. You need to get a bit further down the path of what you want to achieve. (unless someone knows some magic foo that I am unaware of). Looking at what you have so far, it would seem

[Rails] Problem with routes after scaffold

2012-10-31 Thread IT Coobo Internal Team
Hi everbody, I'm new in the forum. I' studing ruby and rails and I hope learn faster with the help of the forum. Well, my problem is basic. I have made a scaffold to create a new object User. User has name, email and password. I created a new view named login, but i don't know how to make the

Re: [Rails] Problem with routes after scaffold

2012-10-31 Thread Luis Miguel Cabezas Granado
Try this: Cbapp::Application.routes.draw do root :to = 'users#index' match 'users/login' = 'users#login' resources :users end Enviado desde mi iPhone El 31/10/2012, a las 15:22, IT Coobo Internal Team li...@ruby-forum.com escribió: Hi everbody, I'm new in the forum. I' studing ruby

[Rails] Re: Sorting in rails 2.3.5 not same as sorting in (Rails 3.2.8)

2012-10-31 Thread rails3 champ
solved!! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

Re: [Rails] css background not showing

2012-10-31 Thread wragen22
That was it for some reason kept overlooking that I didn't have the #.. Sorry all. On Tuesday, October 30, 2012 11:35:01 PM UTC-7, Jordon Bedwell wrote: On Wed, Oct 31, 2012 at 1:28 AM, wragen22 brad...@gmail.com javascript: wrote: Hi, for some reason adding the following is doing

Re: [Rails] Problem with routes after scaffold

2012-10-31 Thread Colin Law
On 31 October 2012 14:22, IT Coobo Internal Team li...@ruby-forum.com wrote: Hi everbody, I'm new in the forum. I' studing ruby and rails and I hope learn faster with the help of the forum. I suggest your best plan might be to work right through a tutorial on rails to help you to understand

[Rails] Re: Problem with routes after scaffold

2012-10-31 Thread IT Coobo Internal Team
WOW! I don't believe it. I only have to reorder the lines as hazardco said! SOLVED! but i have a question. Why reorder the lines solved my problem? anyway thanks guy. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby

Re: [Rails] Problem with routes after scaffold

2012-10-31 Thread Tommaso Visconti
Il 31/10/12 15:22, IT Coobo Internal Team ha scritto: Cbapp::Application.routes.draw do resources :users root :to = 'users#index' match 'users/login' = 'users#login' end rules order in routes.rb is important: users resource 'users/:id' matches before 'users/login' so login is the id

Re: [Rails] Problem with routes after scaffold

2012-10-31 Thread Tommaso Visconti
Sorry, use a collection, not a member: Cbapp::Application.routes.draw do resources :users do collection do get 'login' end end root :to = 'users#index' end -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

Re: [Rails] why can access https://www.xxx.com. but access https://xxx.com have ssl error

2012-10-31 Thread Walter Lee Davis
On Oct 31, 2012, at 3:20 AM, Grant wrote: I have distribute a rails project. The server is in linode (apache+passenger). But i have strange question. when i access my site use https://www.xxx.com . it can access normally. But if i access https://xxx.com. it will be show a ssl

Re: [Rails] Rendering a partial with ajax/jquery

2012-10-31 Thread Walter Lee Davis
On Oct 29, 2012, at 7:04 PM, arturo drlt wrote: Hi there i have this issue I have a view that render a partial for each member inside the object @foo and I have a function for infinite scroll so the server will be doing request after request while scrolling down but I don't know exactly how

[Rails] Re: Problem with routes after scaffold

2012-10-31 Thread IT Coobo Internal Team
thanks Tommaso and hazardco! :) both ways worked. solved. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

Re: [Rails] why can access https://www.xxx.com. but access https://xxx.com have ssl error

2012-10-31 Thread Norbert Melzer
2012/10/31 Walter Lee Davis wa...@wdstudio.com: Is your server configured to host in SSL mode? It's not just a matter of changing the URL in the browser, you have to have configured the server to listen on port 443, purchase and configure a security certificate in Apache or Nginx, and you

[Rails] Re: why can access https://www.xxx.com. but access https://xxx.com have ssl error

2012-10-31 Thread Robert Walker
Norbert Melzer wrote in post #1082257: 2012/10/31 Walter Lee Davis wa...@wdstudio.com: Since it already works for one https-URL and not for the other one, I suggest that it is set up everythin to work with SSL, but the certificate is on the wrong URL (www.example.com instead of example.com +

[Rails] Re: Rendering a partial with ajax/jquery

2012-10-31 Thread arturo drlt
Tony Martin wrote in post #1082196: From the question you have posed, and the information you have provided, 7. Finally having thought about all this, I would do some googling to see if someone has already implemented such a thing in a form I could learn from, or is there maybe a js library

[Rails] Issues with Routing

2012-10-31 Thread Samantha Cabral
Hi, I am trying to work through the Ruby on Rails 3 Tutorial book. I got stuck on chapter 5, trying to get the routes.rb file changed into: match '/signup', :to = 'users#new' match '/contact', :to = 'pages#contact' match '/about', :to = 'pages#about' match '/help', :to = 'pages#help' root :to

[Rails] Re: [Rails-core] Re: [ANN] Rails 3.2.9.rc1 has been released

2012-10-31 Thread Carlos Antonio da Silva
Hello, the pull request has been merged and will be in 3.2.9, thanks! On Wed, Oct 31, 2012 at 8:18 AM, Aliaksandr Rahalevich saks...@gmail.comwrote: Hi here. I have one failed spec in my application and it's caused by return value from ActiveRecord#update_column method. It looks like this

Re: [Rails] why can access https://www.xxx.com. but access https://xxx.com have ssl error

2012-10-31 Thread mhatch73
Norbet is correct. You need to purchase a wildcard certificate to cover mutiple host names. if you purchased the cert for www.example.com, it is only good for that name. If you want to host mutiple names with the same certificate (provided they are in the same domain) you need to purchase a

[Rails] Help with caching (caches_page) in Rails 3

2012-10-31 Thread Leandro Moreira
I code this on my controller: caches_page :index cache_sweeper :site_sweeper https://github.com/leandromoreira/playground.activeadmin/blob/master/app/controllers/page_controller.rb and this on my sweeper class SiteSweeper ActionController::Caching::Sweeper observe Article, Category

Re: [Rails] Issues with Routing

2012-10-31 Thread Colin Law
On 31 October 2012 20:29, Samantha Cabral samantha.gr...@gmail.com wrote: Hi, I am trying to work through the Ruby on Rails 3 Tutorial book. I got stuck on chapter 5, trying to get the routes.rb file changed into: match '/signup', :to = 'users#new' match '/contact', :to = 'pages#contact'

[Rails] SyntaxError in Posts#index

2012-10-31 Thread wragen22
getting this error compile error /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected '=' ...w Goal, new_post_path, class=btn btn-success );@output_bu... ^ /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax

Re: [Rails] Ruby on Rails contractor

2012-10-31 Thread Josue Figueroa
Hi Oliver, I am interested in the contract work, I have two years expirience as RoR developer. I supose this is a home office work. I am in Mexico City. Here is a sample of my work www.carmen-gallery.com Could you give the details? Regards, Josue Figueroa 2012/10/25 Oliver Becker

[Rails] specified new ruby rvm.. now rails is broken

2012-10-31 Thread wragen22
Hi folks, my terminal was loading up an older version of ruby so I installed the latest with rvm and specified the rout in my .bash_profile. Latest ruby is being used but getting this error when trying to run rails