Re: [Rails] Re: Assigning a variable with an input field

2013-04-25 Thread Scott Ribe
On Apr 25, 2013, at 4:41 PM, Brentwood R. wrote: > ...all instances of "something" will be highlighted in the 'div'. What > I'm trying to do is make it so that a user can enter a keyword (through > an input field) so that whatever keyword they entered would be > highlighted on the page. OK. T

[Rails] Re: Assigning a variable with an input field

2013-04-25 Thread Brentwood R.
Scott, Thanks for your response. I'll try to be more precise. The way the jquery plugin work is that if I place a keyword in the function call like so: $('div').highlight('something'); ...all instances of "something" will be highlighted in the 'div'. What I'm trying to do is make it so tha

[Rails] Re: Missing template pages/layout only occasionally

2013-04-25 Thread Rick Cockerham
I finally figured this out. I have an action that only renders html, but googlebot for instance asks for text format. So, it tries to find action.text.erb which doesn't exist. I added this to my controller and everything works now. before_filter :force_html_requests, :only => :show def force

Re: [Rails] Assigning a variable with an input field

2013-04-25 Thread Scott Ribe
On Apr 25, 2013, at 11:20 AM, Brentwood R. wrote: > I may be going about this the wrong way. Any advice would be great. You are possibly confused on more than 1 issue, but there's not enough info in your message to be sure or to let anyone provide a really complete answer. (In particular, do y

Re: [Rails] My rails app keeps on crashing and required server restart.

2013-04-25 Thread Norm Scherer
On 04/24/2013 07:22 PM, tamouse mailing lists wrote: On Wed, Apr 24, 2013 at 2:56 AM, jane d. wrote: I have been looking for answer.but nothing quite fit my description. My rails app keeps crashing with routing error. Look at what it's trying parse as a route: ActionController::RoutingError (

[Rails] Assigning a variable with an input field

2013-04-25 Thread Brentwood R.
Hello all, I am using a jquery plugin to search content on a page and highlight keywords. The function call looks like this: $('div').highlight('@found'); I want the user to be able to assign the variable @found through an input field. It seems like it should be fairly easy but I am new to r

[Rails] Re: URGENT:Rails application crashed for 700 request per minute.

2013-04-25 Thread Matt Jones
On Wednesday, 24 April 2013 07:41:23 UTC-4, visha...@googlemail.com wrote: > > Hi, > > We have our rails application running on AWS. we have two application > servers and one database(postgres) server of C1.xlarge > AWS instance type. > Our passenger

Re: [Rails] What are "pages that require authentication" and why they cannot be cached?

2013-04-25 Thread Walter Lee Davis
On Apr 25, 2013, at 11:38 AM, Wins Lin wrote: > Walter Davis wrote in post #1106898: >> On Apr 25, 2013, at 10:37 AM, Wins Lin wrote: >> >> No, it would be any page containing unique content meant for that user's >> eyes only. You can't cache them because they are bound to the current >> user's

Re: [Rails] Re: What are "pages that require authentication" and why they cannot be cached?

2013-04-25 Thread henrique matias
Hey have a look on some screencasts on youtube and railscasts: http://www.youtube.com/watch?v=UnhHZJiSrSc They'll completely explain everything you need, rails is able to do what you want to do, you just need to learn how to do it. peace, On 25 April 2013 16:38, Wins Lin wrote: > Walter Davi

[Rails] Re: What are "pages that require authentication" and why they cannot be cached?

2013-04-25 Thread Wins Lin
Walter Davis wrote in post #1106898: > On Apr 25, 2013, at 10:37 AM, Wins Lin wrote: > > No, it would be any page containing unique content meant for that user's > eyes only. You can't cache them because they are bound to the current > user's session -- you can only cache things that are meant for

[Rails] Re: Examples of long AND WELL-WRITTEN Ruby scripts

2013-04-25 Thread Pat Johnson
No, there is no "ruby generate" or "ruby new" commands that would generate a skeleton program. Ruby itself is just like any other compiled on the fly interpreted programming language. You can simply write code in a text file and execute it via the ruby interpreter. Rails on the otherhand is a c

Re: [Rails] What are "pages that require authentication" and why they cannot be cached?

2013-04-25 Thread Walter Lee Davis
On Apr 25, 2013, at 10:37 AM, Wins Lin wrote: > I don't understand what is meant in Rails Guide about caching: > >>> Unfortunately, it can't be applied to every situation >>> (such as pages that need authentication) and since the webserver is >>> literally >>> just serving a file from the files

[Rails] What are "pages that require authentication" and why they cannot be cached?

2013-04-25 Thread Wins Lin
I don't understand what is meant in Rails Guide about caching: >> Unfortunately, it can't be applied to every situation >> (such as pages that need authentication) and since the webserver is literally >> just serving a file from the filesystem, cache expiration is an issue >> that needs to be deal

[Rails] Experienced advices for high traffic website / CDN's with origin pull feature ?

2013-04-25 Thread henrique matias
Hello guys, Recently i got into rackspace and built a stack based on nginx / unicorn / rails / mongodb / ubuntu and so far am really happy with it. Now am starting to change my focus from development to testing and improving performance, so i started by trying to give a change to Cloud Files but

Re: [Rails] Are there Edge API documentation as Edge Guide documentation?

2013-04-25 Thread Dheeraj Kumar
edgeapi.rubyonrails.org -- Dheeraj Kumar On Thursday 25 April 2013 at 5:44 PM, Wins Lin wrote: > Edge Guide sometimes explains methods that are not present in > http://api.rubyonrails.org/. Are there corresponding API docs for Edge? > > -- > Posted via http://www.ruby-forum.com/. > > -- >

[Rails] Are there Edge API documentation as Edge Guide documentation?

2013-04-25 Thread Wins Lin
Edge Guide sometimes explains methods that are not present in http://api.rubyonrails.org/. Are there corresponding API docs for Edge? -- 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 unsubscri

Re: [Rails] Re: how to use link_to

2013-04-25 Thread Colin Law
On 25 April 2013 11:39, cihad yildiz wrote: I asked that you quote the previous message, and insert your reply inline, which you have not done. > yes I am watching a tutorial Is it a Rails 3 tutorial? It should be. > > I add routes > that > get "phones_feature/index" > get "phone/index" >

[Rails] Re: how to use link_to

2013-04-25 Thread cihad yildiz
yes I am watching a tutorial I add routes that get "phones_feature/index" get "phone/index" get "phone/show" get "phone/new" I watch a video I use the same code but I had an error ( link_to ("#{phone.model}",phones_feature_index_path) it shows this line I am sorry Ill keep in mind -

Re: [Rails] Re: how to use link_to

2013-04-25 Thread Colin Law
On 25 April 2013 10:32, cihad yildiz wrote: > I canged my link it is no longer image it is model part and Please quote the previous reply and insert you reply into it at the appropriate points so that it is easier to follow the thread. Remember that this is a mailing list not a forum (though you

[Rails] Re: how to use link_to

2013-04-25 Thread cihad yildiz
I canged my link it is no longer image it is model part and phone index.html.erb <% @phones.each do |phone| %> <%=image_tag(phone.image, :class => 'list_image')%> <%= phone.brand %> <%= link_to "#{phone.model}", :controller => :phones_feature_controller, :action => :index,:id => :pho

Re: [Rails] how to use link_to

2013-04-25 Thread Colin Law
On 25 April 2013 09:36, cihad yildiz wrote: > I have 2 controller > phone > phones_feature > I want to give a link from phone index page to phones_feature index page > and also my link is an image > here is my code > > <%=link_to image_tag(phone.image, :class => 'list_image'),:id=>phone.id > %> G

Re: [Rails] Part time rails job for learning experience

2013-04-25 Thread Arvind Vyas
I am also looking for part time job ,i have 1.3 year of exp in rails On Thu, Apr 25, 2013 at 4:39 AM, Numan Ilyas wrote: > Hi guys, > > I am looking for part time job as learning experience for rails. I've > total 6 years of experience mostly java related but I am new to rails. I've > gone thro

Re: [Rails] Getting Rails to work with an existing database instead of a new one

2013-04-25 Thread Arvind Vyas
see this command will not generate the database this will generate the table name user , if you want to change the database go to the database.yml to change the database name. On Thu, Apr 25, 2013 at 11:50 AM, William Herry wrote: > that comment will generate controller, model and migration(use

Re: [Rails] Learningrails.com problem

2013-04-25 Thread Arvind Vyas
there is error of % you can see, first try with scaffold that will help you lot On Thu, Apr 25, 2013 at 11:56 AM, William Herry wrote: > <%= something %>, seems you miss a % @page is passed from controller to > view as it is instance variable, so name should be same > > > On Wed, Apr 24, 2013 a

[Rails] how to use link_to

2013-04-25 Thread cihad yildiz
I have 2 controller phone phones_feature I want to give a link from phone index page to phones_feature index page and also my link is an image here is my code <%=link_to image_tag(phone.image, :class => 'list_image'),:id=>phone.id %> I wrote this but it doesnt work I am new I look exemples here i

[Rails] Re: sending Mail in loop w attachmt -> only 1.mail has the attachment

2013-04-25 Thread Frederick Cheung
On Wednesday, April 24, 2013 10:27:50 PM UTC+1, Ruby-Forum.com User wrote: > > Hello, > i have a Loop where an email is sent to several adresses one by one. > works fine, but if i attach a file it works only for the first adress > correctly. THe other get the mailtext, but no attachment (coorc

Re: [Rails] Learningrails.com problem

2013-04-25 Thread Colin Law
On 23 April 2013 18:48, Kunal Patel wrote: > I am using Learningrails.com tutorials and I am on lesson 10. I am having a > few issues: > > 1) I cannot find a way to render the HTML tags. The method they used was > insert in the controller/viewer_controller : > class ViewerController < Ap

Re: [Rails] rails one to one association

2013-04-25 Thread Colin Law
On 24 April 2013 10:39, ejo wrote: > I have an issue related to rails. > The class definition is given below. > > > class Supplier < ActiveRecord::Base > has_one :criteria You need to specify the foreign key also (crt_sup_id) here as it is non-standard. On a side note I strongly recomme

Re: [Rails] Getting Rails to work with an existing database instead of a new one

2013-04-25 Thread Colin Law
On 25 April 2013 05:12, Jason Hsu, Android developer wrote: > All of the Rails tutorials I've looked at seem to revolve around creating a > new database and then making the contents of the database accessible through > the web page. The URL http://localhost:3000/users gives you access to the > us