I am trying from a week to deploy my application. Please help me how
to do this.
Thanks
--
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-t...@googlegroups.com.
To unsubscribe from this
why don't you use select query or ActiveRecord.find for fetching a record
from table? I guess its better way.
Regards,
Narendra
On Mon, Jun 21, 2010 at 8:47 PM, Sampath Munasinghe
sampathni...@gmail.comwrote:
i think i used same way. but it was not success. please check.
==
On Jun 22, 3:26 am, Pito Salas li...@ruby-forum.com wrote:
I got the error below the dashed line, which to me says that
ActiveRecord is not recognizing the mocked variable a_phone as a proper
object to add to the association. I did a bunch of digging but could not
figure out how to get the
Hi,
As Philipe mentioned you have to modify the plugin little bit to match
your requirement.
Lets say you are using acts_as_ratable plugin, so they will use rate
column to specify the rate.
You just add few more columns like benefit_rate, applicability_rate,
quality_rate and what ever you
I need to get status of insertions and need to create new userID inside the
stored proc. thats why I need to use this.
On Tue, Jun 22, 2010 at 12:59 PM, Narendra sisodiya
naren.sisod...@gmail.com wrote:
why don't you use select query or ActiveRecord.find for fetching a record
from table?
On 22 June 2010 07:57, Sampath Munasinghe sampathni...@gmail.com wrote:
I need to get status of insertions and need to create new userID inside the
stored proc. thats why I need to use this.
s/need/want/
Nothing there you can't do *without* resorting to SPs.
--
You received this message
Hi Szymon,
you can use after_create and after_destroy callback method in
venue_suggestions model.
So when ever you are assigning a new venue to a reply it will create a
record in venue_suggestions table and call the after_create method.
But the issue with after_destroy is:
if you are trying
Hi,
better you try these gems for non-model validation
active_record_no_table -
http://www.railsfire.com/article/validating-non-active-record-model-using-active-record-no-table
validatable - http://validatable.rubyforge.org/
Regards,
T.Veeraa.
Rails Learner wrote:
Hi Everybody,
I need to
You could also take a look at HTML5 form validation.
On Jun 22, 8:33 am, Veera Sundaravel li...@ruby-forum.com wrote:
Hi,
better you try these gems for non-model validation
active_record_no_table
-http://www.railsfire.com/article/validating-non-active-record-model-u...
validatable
its slki)
validation should be always duplicated at server side =)
Ivan Nastyukhin
dieinz...@me.com
On Jun 22, 2010, at 11:51 AM, tsenart wrote:
You could also take a look at HTML5 form validation.
On Jun 22, 8:33 am, Veera Sundaravel li...@ruby-forum.com wrote:
Hi,
better you try
Anyone? From what I can see from the guides, what I am doing here is
correct (http://guides.rails.info/routing.html#controller-namespaces-
and-routing)
Does anyone have any pointers?
On Jun 21, 6:13 pm, Neil neil.middle...@gmail.com wrote:
I have an app that has the following in the routes
Hello,
I can't find a way to do what I'm trying so maybe someone can throw
something at me.
The idea is if an option is not in a select list, the user can click a link
next to the list 'not there?' and this will open uop a text field box below.
The user then enters the missing option, hits enter
On Jun 21, 11:49 pm, Ali Imran ali.imran.r...@gmail.com wrote:
I am trying from a week to deploy my application. Please help me how
to do this.
What's not working? What's your setup (unicorn/passenger/mongrel/
something else) ?
Fred
--
You received this message because you are subscribed
I have an app that will be making a customer list to go in a pdf. The
pdf part wasn't bad using wicked_pdf. The problem is keeping the
controller code where it belongs.
The app has a print method in the controller. It does a render partial
to loop through each customer. Once there it needs to
On 22 June 2010 07:42, Bob Smith bsm...@gmail.com wrote:
The app has a print method in the controller. It does a render partial
to loop through each customer. Once there it needs to make lists of
attendance for each of the last 3 years to be part of each customers
page. This is different for
rodrigo3n wrote:
Hello everyone, I gotta start an app that have to give icons to users
conform they use the application. For example, a user has bought 10
products so he gets icons symbolizing his activity. A user who has
bought 5 items has 2 icons and a user who bought 15 has more. The more
Thanks Everyone!
I have now something to get started.
I will let you know if I have further issues.
--
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
Ali Imran wrote:
I am trying from a week to deploy my application. Please help me how
to do this.
Thanks
To save yourself tons of potential future grief, try setting up a VM on
your Windows machine that is based on the same Linux OS as your
deployment target OS.
Then it becomes
Michael Pavling wrote:
On 22 June 2010 07:57, Sampath Munasinghe sampathni...@gmail.com
wrote:
I need to get status of insertions and need to create new userID inside the
stored proc. thats why I need to use this.
s/need/want/
Nothing there you can't do *without* resorting to SPs.
Hello,
Sorry if this looks silly, but I trying to learn Ruby on Rails best
practices.
I have a model called Users and a model called Projects. Now I need to
implement a status field to each one of them. Each User/Project
belongs_to a status.
But because they have different kind of status
On 22 June 2010 15:11, Fernando Brito em...@fernandobrito.com wrote:
I have a model called Users and a model called Projects. Now I need to
implement a status field to each one of them. Each User/Project
belongs_to a status.
If you're implementing states, use a state machine.
I use AASM at a
Ar Chron wrote:
Norm Scherer wrote:
Is there some reason that it would be
better to do it all in the view?
No.
Ideally, the view is only the presentation layer.
Among other reasons, when you start reusing partials, it will be come
readily apparent why you want to marshal the data in
We are looking for an experienced developer to help build cutting edge
web applications. The ideal candidate is a great problem solver, who is
able to work independently. Open, informal and creative atmosphere...
Availability to travel between DC and NY as necessary a must!
REQUIRED:
* 5+ years
a tip when using partials: look into :locals option and use it
extensively. Don't assume that a partial can see things from the
controller - specify what you want the partial to see using :locals.
It'll pay off in the end.
On Jun 22, 10:39 am, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Ar
Imagine I have a simple scaffolded model Order, controller
OrderControllers with all the default views etc.
Then I modify routes to have all actions except index and show be
available under /admin subdirectory:
resources :orders, :only = [:index, :show]
scope '/admin' do
resources
chewmanfoo wrote:
a tip when using partials: look into :locals option and use it
extensively. Don't assume that a partial can see things from the
controller - specify what you want the partial to see using :locals.
It'll pay off in the end.
A most excellent tip. :object and :collection are
Just have a small question especially I'm new to RoR and web
programming. When we say that the application runs on a web server. Does
that mean for example when I run my application at:
http://localhost:3000, the web server is my local machine?
And, since a server is a bundle of HW + SW, what is
On Tue, Jun 22, 2010 at 9:28 AM, Abder-rahman Ali li...@ruby-forum.com wrote:
Just have a small question especially I'm new to RoR and web
programming. When we say that the application runs on a web server. Does
that mean for example when I run my application at:
http://localhost:3000, the web
Oh, I found the reason.
When routes are defined and helpers are generated in the
'define_hash_access' method, the hash access function is named the
same for show and update actions: hash_for_order_path. So the update
action's path helper overwrites the show's one.
I still wonder if it is a bug
this time i'm doing little bit large project. main concerns are security
and performance. thats why im looking for the stored procs. I really really
need this.
On Tue, Jun 22, 2010 at 9:01 PM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
Michael Pavling wrote:
On 22 June 2010 07:57,
Sampath Munasinghe wrote:
this time i'm doing little bit large project. main concerns are
security
Which stored procedures will not help with.
and performance.
Which stored procedures may or may not help with.
thats why im looking for the stored procs. I really
really
need this.
No,
I want to show a page that lists people that belong to a particular
company (each person has a company_id). My link_to looks like
%= link_to people,:controller = people, :action =
by_company, :company_id = @company.id %
which produces the link
I'd like to see an example of an application generator template for
Rails 3. Any suggestions?
--
Daniel
ke...@fortuity.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
How do you have this on your routes file?
On Tue, Jun 22, 2010 at 7:34 PM, richardsugg richards...@gmail.com wrote:
I want to show a page that lists people that belong to a particular
company (each person has a company_id). My link_to looks like
%= link_to people,:controller = people,
Most of my migrations are by number, not timestamp, but 5 or 6 of them
(the most recent) are with timestamp. These I want to move to number
based, and now I want to forward the migration table to the appropriate
number. How do I force the table to update without actually running the
migration, or
Routes file:
ActionController::Routing::Routes.draw do |map|
map.resources :people
map.resources :users
map.root:controller = homepage
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end'
On Jun 22, 2:51 pm, Rui Carvalho
Well, I got around it, but I'd like to know why the original way
didn't work because I'm certain this will come up again. Here's what
I did:
I changed the link_to to be
%= link_to people,:controller = people, :action =
by_company, :id = @company.id %
which created the link
Hi Everybody!
I m back.
I have a non-model form (I am using active_record_no_table gem for
validations). When the user fills that form and submits it, I want to
process the form and then display it back to the user just like the
show method in a scaffold.
Now, since this is a non-model form, I
Hello,
I have a form to add terms to a thesaurus table.
I have a drop-down list for the user to select the language (fr, en,
es,), and then a text box to write a term with a code. I want to set
the @thesaurus[whichever language was selected] = term.
How can I say @thesaurus['fr'] = term, where
Rails Learner wrote:
Hi Everybody!
I m back.
I have a non-model form (I am using active_record_no_table gem for
validations). When the user fills that form and submits it, I want to
process the form and then display it back to the user just like the
show method in a scaffold.
Now, since
Is this correct?
% Site = YAML.load(ERB.new(File.read(File.join(RAILS_ROOT, 'config',
'sites.yml'))).result) %
On Thu, Jun 17, 2010 at 00:27, trybeee tryb...@gmail.com wrote:
YAML.load(ERB.new(File.read(path_to_file)).result)
On Jun 16, 6:14 pm, Chris Habgood chabg...@gmail.com wrote:
Ok,
Tyler Smart wrote:
Most of my migrations are by number, not timestamp, but 5 or 6 of them
(the most recent) are with timestamp. These I want to move to number
based, and now I want to forward the migration table to the appropriate
number. How do I force the table to update without actually
Bump?! Can anyone help with this?
On 21 June, 17:11, Joe j...@dev-hq.co.uk wrote:
Im currently in the process of adding permalinking to my site; at the
moment I am simply testing it out in development mode.
The problem is that at the moment I have all of these URLs that lead
to the same
Hi Marnen,
How can I pass the the whole object in link_to?
For instance, if I have a child object with first_name and last_name as
attributes, then I need to pass the child object as a hash.
Right now, what is working for me is this:
%= link_to 'Create PDF', { :controller = 'children', :action
I tried this:
window.onload = function(){
alert(Hello World);
$(a).click(function(){alert(Hello World)});
}
And the alert triggers on page load, but when I click a lnk, it doesn't
trigger.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
I'm going to start using Netbeans, I'm using vim right now for my new
experience with ror. That can solve my undeclared variable problem.
So I can say the main problem is trying to call a controller via
'admin/:controller'. I can see that map.resources it's not the
answer... Correct me if I am
Sebastian wrote:
Hi everyone!
Im having troubles with my routes.rb, i set map.namespace :admin so i
can enter to my scaffold 'contacts' via admin/contacts', but the view
its crashing showing this error:; *undefined method `contact_path' for
#ActionView::Base:0xb6743be4*
The question is:
Hi Tyler,
Tyler Smart wrote:
Most of my migrations are by number, not timestamp, but 5 or 6 of them
(the most recent) are with timestamp. These I want to move to number
based, and now I want to forward the migration table to the appropriate
number. How do I force the table to update without
Rails Learner wrote:
Hi Marnen,
How can I pass the the whole object in link_to?
You can't.
For instance, if I have a child object with first_name and last_name as
attributes, then I need to pass the child object as a hash.
No. Pass them as two separate parameters (as I guess you're
Hi John,
On Tue, Jun 22, 2010 at 3:25 PM, John Merlino li...@ruby-forum.com wrote:
I tried this:
window.onload = function(){
alert(Hello World);
$(a).click(function(){alert(Hello World)});
}
And the alert triggers on page load, but when I click a lnk, it doesn't
trigger.
$() takes
Bill Walton wrote:
Hi Tyler,
Tyler Smart wrote:
Most of my migrations are by number, not timestamp, but 5 or 6 of them
(the most recent) are with timestamp. These I want to move to number
based, and now I want to forward the migration table to the appropriate
number. How do I force the
what do u mean ?
On Wed, Jun 23, 2010 at 12:35 AM, Marnen Laibow-Koser
li...@ruby-forum.comwrote:
Sampath Munasinghe wrote:
this time i'm doing little bit large project. main concerns are
security
Which stored procedures will not help with.
and performance.
Which stored procedures
This works:
window.onload = function(){
var links = document.getElementsByTagName(A);
for(var i = 0; i links.length; i++){
links[ i ].onclick = function(){alert(click);};
}
};
This doesn't:
$(document).ready(function() {
var links =
firebug is telling me $ is not defined
--
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-t...@googlegroups.com.
To unsubscribe from this group,
Hi Marnen,
On Tue, Jun 22, 2010 at 3:46 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Bill Walton wrote:
IME, there are good reasons to avoid time-stamped migrations.
Not a one IMHO.
You are certainly entitled to your opinion. But knowing as I do that
you have no leadership experience
Thanks for the reply!
Basically the problem was that we were using a form were we had
dynamically added/removed hidden fields with venue IDs - they were
later passed as an array (:params = {:venue_ids = [something]}),
that's why I was mainly interested in reply#venue_ids= assignment. I
solved it
I have created a scaffold, part of which was dob:date
When I view my web page under DOB, I have only the years listed from
2005-2015. What should I do to enter older years?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
What do you have in your by_company method?
looks like you had in your find statement - params[:id] and it should
have been params[:company_id]
You might take a look at generating a class method in your model file:
def self.by_company( anId )
find(:all, :conditions = [company_id = ?, anId] )
I have created a scaffold, part of which was dob:date
When I view my web page under DOB, I have only the years listed from
2005-2015. What should I do to enter older years?
See the docs for date_select (even if it's a datetime_select the same options
work). Specifically:
:start_year - Set
The web server simply looks at the information you submit ( a page for
example) and routes it to the proper destination in rails. With me
it's frequently error pages though.
Rails comes with a web server named webrick which works nicely enough
for learning about Rails. Mongrel is a separate,
Bb Serviss wrote:
The web server simply looks at the information you submit ( a page for
example) and routes it to the proper destination in rails. With me
it's frequently error pages though.
Rails comes with a web server named webrick which works nicely enough
for learning about Rails.
Philip Hallstrom wrote:
I have created a scaffold, part of which was dob:date
When I view my web page under DOB, I have only the years listed from
2005-2015. What should I do to enter older years?
See the docs for date_select (even if it's a datetime_select the same
options work).
On Jun 22, 2010, at 2:56 PM, Abder-rahman Ali wrote:
Philip Hallstrom wrote:
I have created a scaffold, part of which was dob:date
When I view my web page under DOB, I have only the years listed from
2005-2015. What should I do to enter older years?
See the docs for date_select (even if
Philip Hallstrom wrote:
On Jun 22, 2010, at 2:56 PM, Abder-rahman Ali wrote:
Time.now.year - 5.
:end_year - Set the end year for the year select. Default is
Time.now.year + 5.
Thanks Philip.
I'm actually new to RoR. Where can I make this change?
In the view file. Find the file
Bill Walton wrote:
Hi Marnen,
On Tue, Jun 22, 2010 at 3:46 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Bill Walton wrote:
IME, there are good reasons to avoid time-stamped migrations.
Not a one IMHO.
You are certainly entitled to your opinion. But knowing as I do that
you
Bill Walton wrote:
Hi Marnen,
On Tue, Jun 22, 2010 at 3:46 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Bill Walton wrote:
IME, there are good reasons to avoid time-stamped migrations.
Not a one IMHO.
You are certainly entitled to your opinion. But knowing as I do that
you
You could add a status field to your higher level models - for
example, add 'status' to User as an integer and then store your
status:descriptions in a common status table. So you store an integer
referring to the status in your User model and if you need to display
the description, query the
Thanks for the reply
How to install the passenger on windows xp. I am trying to install it
but it is giving me
this error...
C:\gem install passenger
Building native extensions. This could take a while...
ERROR: Error installing passenger:
ERROR: Failed to build gem native extension.
On Jun 22, 2010, at 3:10 PM, Abder-rahman Ali wrote:
Philip Hallstrom wrote:
On Jun 22, 2010, at 2:56 PM, Abder-rahman Ali wrote:
Time.now.year - 5.
:end_year - Set the end year for the year select. Default is
Time.now.year + 5.
Thanks Philip.
I'm actually new to RoR. Where can I
Sampath Munasinghe wrote:
what do u mean ?
By what? Since you failed to quote the text you were replying to, I
have no idea what you're referring to.
On Wed, Jun 23, 2010 at 12:35 AM, Marnen Laibow-Koser
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted
Ar is correct - Virtual Box http://www.virtualbox.org/ is one such
path and is free for personal use.
You might checkout Capistrano - http://www.capify.org/index.php/Tutorials
And depending on what you're deploying you might be interested in
Heroku - http://heroku.com/
On Jun 22, 8:46 am, Ar
Ali Imran wrote:
Thanks for the reply
How to install the passenger on windows xp.
Please see
http://www.modrails.com/documentation/Users%20guide%20Apache.html#_supported_operating_systems
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via
Buddy Thanks for reply..
On Jun 22, 6:46 am, Ar Chron li...@ruby-forum.com wrote:
Ali Imran wrote:
I am trying from a week todeploymy application. Please help me how
to do this.
Thanks
To save yourself tons of potential future grief, try setting up a VM on
your Windows machine that is
Thanks...
it says
Phusion Passenger works on any POSIX-compliant operating system. In
other words: practically any operating system on earth, except
Microsoft Windows
so it is not possible to install on windows ...
On Jun 22, 4:32 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Ali Imran
Perhaps you can add a link_to_remote, either in the section or
surrounding it, to add an extra option then update the select list.
The Rails Cookbook has a section on using ajax to add DOM Elements to
a page
And there is this :http://api.rubyonrails.org/classes/ActionView/
On Tue, Jun 22, 2010 at 5:18 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Bill Walton wrote:
Hi Marnen,
On Tue, Jun 22, 2010 at 3:46 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Bill Walton wrote:
IME, there are good reasons to avoid time-stamped migrations.
Not a one IMHO.
Bill Walton wrote:
On Tue, Jun 22, 2010 at 5:18 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
You are certainly entitled to your opinion. �But knowing as I do that
you have no leadership experience in a software development role, your
opinions on topics like this have no weight.
Ali Imran wrote:
Thanks...
it says
Phusion Passenger works on any POSIX-compliant operating system. In
other words: practically any operating system on earth, except
Microsoft Windows
so it is not possible to install on windows ...
Right (unless you're using a VM, of course).
Best,
--
Sampath,
Five minutes of googling turned up a ton of references. Check out the
following:
http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/
http://guyharrison.typepad.com/guy_harrisons_blog/2006/04/mysql_stored_pr.html
http://paslogic.com/?p=13
There were many more. Type in
Philip Hallstrom wrote:
On Jun 22, 2010, at 3:10 PM, Abder-rahman Ali wrote:
In the view file. Find the file that has the form and then look for
date_select and add the options...
If you mean the views folder, there is nothing actually on it. Just
*.html.erb
Right. And one of
@mikrogroove
I need a few days to finish up the testing, and then I'll have this
out for you.
Thanks for your patience!
Also, check out the addition of :duration in the README, if you
haven't already. May help you get started
Thanks,
John Crepezzi
On Jun 21, 10:36 am, mikrogroove
On Wed, Jun 23, 2010 at 8:50 AM, Abder-rahman Ali li...@ruby-forum.com wrote:
16: %= f.date_select(:start_year=1950, :end_year=2010) :dob %
you'll need the object and method,
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M002264
kind regards -botp
--
You received
Hi,
I need help with some AJAX in rails 3.
So basically, I have a select option in my index page for my User
model. This select option is a form that modifies the user's type. The
:remote = true works and the type is changed when hit the submit
button. But, nothing happens in the browser. The
Please if some one tell me how to setup the virtual machine on windows
PC,..
Thanks...
On Jun 22, 5:59 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Ali Imran wrote:
Thanks...
it says
Phusion Passenger works on any POSIX-compliant operating system. In
other words: practically any
I found it here
http://www.pendrivelinux.com/running-linux-from-within-windows-virtually/
On Jun 22, 10:11 pm, Ali Imran ali.imran.r...@gmail.com wrote:
Please if some one tell me how to setup the virtual machine on windows
PC,..
Thanks...
On Jun 22, 5:59 pm, Marnen Laibow-Koser
here is how...
http://www.pendrivelinux.com/running-linux-from-within-windows-virtually/
here is iso
http://www.linuxlookup.com/linux_iso
this is virtual box
http://www.virtualbox.org/wiki/Downloads
On Jun 22, 11:01 pm, Ali Imran ali.imran.r...@gmail.com wrote:
I found it here
Do Now I need to install Ruby on rails on my virtual machine..
On Jun 22, 11:09 pm, Ali Imran ali.imran.r...@gmail.com wrote:
here is how...
http://www.pendrivelinux.com/running-linux-from-within-windows-virtua...
here is iso
http://www.linuxlookup.com/linux_iso
this is virtual box
87 matches
Mail list logo