On Tue, Aug 16, 2011 at 9:42 AM, 7stud -- li...@ruby-forum.com wrote:
Jim ruther Nill wrote in post #1016826:
Everytime the page loads
The user could have the page open for two hours. What then?
After the js fires, set that same script to run after 1 hour.
--
Posted via
Thanks for your replies. I haven't used ERB for ages and so forgot the
syntax.
I think I'm going to have to shelve encrypting the email address as it
doesn't play with Authlogic and I haven't seen a way of encrypting the email
address with Authlogic. I will look into this later, though.
Thanks
i wanna add left menu in the http://demo.projectfedena.org/
login:admin password:admin123 as there is no left menu in that i
thought of adding a left menu. can any one tell how to do that with
ROR.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Hi Everyone,
I am trying to solve this problem, but couldn't able to get the
solution. I hope i will get some help here.
I am using these three find methods to get different types of
devices. I dont have any relationships between any models.
windows_devices = BaseManagedEntity.find(:all,
On 16 August 2011 09:45, Petr M. li...@ruby-forum.com wrote:
And what about helpers?
I would like to let users to enter date in the text field (faster then
3x select), so value for some_object.date_attribute
should in f.text_field(:date_attribute)
be 21.7.2011 (not 2011-07-21).
I am using
On 16 August 2011 09:49, merbivore eshward...@gmail.com wrote:
Hi Everyone,
I am trying to solve this problem, but couldn't able to get the
solution. I hope i will get some help here.
I am using these three find methods to get different types of
devices. I dont have any relationships
Hi Colin,
Thanks for the quick reply. I can't sort out the database design
becoz am pulling the data from SCOM sql server.
Could you help me how can i solve this one please.
On Aug 16, 1:55 pm, Colin Law clan...@googlemail.com wrote:
On 16 August 2011 09:49, merbivore eshward...@gmail.com
Hi Ben, in response to your query you may want to check out BitPusher
http://www.bitpusher.com/. I work for this company.
We do full-service managed hosting (infrastructure and operations) for
Ruby-on-Rails and other web application stacks i.e. LAMP. Many of our
clients have hit the we need to
I've got a VPS with Apache/mod_rails installed. I had a virtual host
set up for redmine (rails 2 app) that was working just fine. Then I
set up a virtual host with my own rails 3 app and got it working, but
now when I try to access redmine, passenger throws up the error: can't
activate
Hello Ben. Congratulations on your site's success!
I'd be happy to answer any questions you may have about my company,
Engine Yard.
You'll not be surprised that given my bias, I think we're the ideal
solution for you. :-)
Seriously though, we've always focused on taking the pain out of
running
Running Ruby 1.8.7, Rails 3.0.7 on a Windows 7 machine - tried going
through an upgrade to Ruby 1.9.2 over the weekend, but ran into
issues, so have since gone back to 1.8.7. After restoring my app and
re-installing all of the gems, the application finally launches with
rails s:
= Booting WEBrick
On 16 August 2011 09:58, merbivore eshward...@gmail.com wrote:
Please don't top post, it makes it difficult to follow the thread.
Insert your reply at appropriate point in previous message. Thanks.
Hi Colin,
Thanks for the quick reply. I can't sort out the database design
becoz am pulling
Hi Colin,
I tried like this also %= check_scom_column(device) % in the view.
And in helper i provided like this
def check_scom_column(device)
if device.IPAddress
return device.IPAddress
elsif device.IPAddress_65AC01F1_F20E_CE0D_42CA_B24D1DE49E5F
return
On 15 Aug 2011, at 22:55, Alex Slepak wrote:
Running Ruby 1.8.7, Rails 3.0.7 on a Windows 7 machine - tried going
through an upgrade to Ruby 1.9.2 over the weekend, but ran into
issues, so have since gone back to 1.8.7. After restoring my app and
re-installing all of the gems, the application
On 15 August 2011 22:55, Alex Slepak asle...@soletron.com wrote:
Running Ruby 1.8.7, Rails 3.0.7 on a Windows 7 machine - tried going
through an upgrade to Ruby 1.9.2 over the weekend, but ran into
issues, so have since gone back to 1.8.7. After restoring my app and
re-installing all of the
Hi,
You have to create a partial view with the content for the menu...
example:
/app/views/shared/_menu_left.erb... there you can put your
content for the menu.
Later in the file
/app/views/layouts/application.html.erb
You have to call the partial (just take in
On 16 August 2011 10:05, merbivore eshward...@gmail.com wrote:
Hi Colin,
I tried like this also %= check_scom_column(device) % in the view.
And in helper i provided like this
def check_scom_column(device)
if device.IPAddress
return device.IPAddress
elsif
Eshwar Gouthama wrote in post #1016869:
Hi Everyone,
After finding these am concatenating all these three like this
devices = windows_devices.concat(unix_devices)
@devices = devices.concat(network_devices)
@devices = windows_devices + unix_devices + network_devices
I need to loop
Hi Colin,
I didn't understand what you are saying. Could you tell me clearly
what should i do.
On Aug 16, 2:21 pm, Colin Law clan...@googlemail.com wrote:
On 16 August 2011 10:05, merbivore eshward...@gmail.com wrote:
Hi Colin,
I tried like this also %= check_scom_column(device) % in
Hi,
I think the best will be to set the os scheduler to launch a
ruby script every hour to execute the task. I try to use
delayed_jobs only when a user launches / start a process that is too
big / too long and will affect the user experience.
Good luck!
Create an endpoint and call it using external cron service.
http://www.setcronjob.com/
--
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
Hi Colin,
Thanks a lot. I got the solution.
On Aug 16, 2:25 pm, merbivore eshward...@gmail.com wrote:
Hi Colin,
I didn't understand what you are saying. Could you tell me clearly
what should i do.
On Aug 16, 2:21 pm, Colin Law clan...@googlemail.com wrote:
On 16 August 2011 10:05,
On 16 August 2011 10:25, merbivore eshward...@gmail.com wrote:
The first thing I was saying was not to top post, which you ignored.
Hi Colin,
I didn't understand what you are saying. Could you tell me clearly
what should i do.
On Aug 16, 2:21 pm, Colin Law clan...@googlemail.com wrote:
I was using mongrel_cluster in conjunction with Vlad The Impaler some time
ago. Compared to a cloud hosting platform such as Heroku, this is quite
difficult to setup since you'll have to set up SSH keys, think of a port the
mongrel should run on (one that isn't in use!) and when you have multiple
Are you using a static map? If so, maybe I can help you with my static map
setup. I've used the googlestaticmap gem for that.
- unless RAILS_ENV.eql?(test)
- map = GoogleStaticMap.new(:zoom = 11, :center =
MapLocation.new(:address = resource.full_address), :width = 150, :height
= 150)
This is my model
class Product ActiveRecord::Base
validates_presence_of :title, :description, :image_url
validates_numericality_of :price
validate :price_must_be_at_least_a_cent
validates_uniqueness_of :title
validates_format_of :image_url,
This is due to incompatibility in your rails version and i18n version.
If you are on Rails 2.3 branch... then upgrade to 2.3.8 or higher
or copy over the error messages yml file from your activerecord gem
installation into your locales directory
and change {{attribute}} to %{attribute}
{{message}}
i appreciate for your reply gentlemen but can u explain detail .ok ill
create the partial page then what is the code i got to write in it if u have
any sample code.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
On 16 August 2011 13:41, hanish jadala emailtohoneyr...@gmail.com wrote:
i appreciate for your reply gentlemen but can u explain detail .ok ill
create the partial page then what is the code i got to write in it if u have
any sample code.
Do you know what you want to do using html and css
yeah i have a very good idea of html and css . but the thing i need to a
left menu using ROR. how can i do that. if u can visit the site
demo.projectfedena.org with LOGIN :admin and PASSWORD: admin123 there is
menu on the top i want that menu to the left side . just see the site then u
can help me
Thank you for the answers.
Using a scheduler or a external cron service still means to use a
worker, right?
But would the js - way need a worker for that task? (js means java
script or not?)
The problem is just that i never did something with javascript...
So maybe i could set it up like Jim said
On 16 August 2011 13:57, hanish jadala emailtohoneyr...@gmail.com wrote:
Please don't top post, it makes it difficult to follow the thread.
Insert your reply at appropriate points in the previous message.
Thanks.
yeah i have a very good idea of html and css . but the thing i need to a
left
i hope u saw the site . there is a menu on the top rite so, if i need that
menu on left side of the screen what should i do. i mean how to write the
code of that.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group,
Hi,
Assuming the code is the same as
"https://github.com/projectfedena/projectfedena_v2.0"
You can find the upper menu embedded in
"/app/views/layouts/application.html.erb"
div id="main-menu"%= link_to "Dashboard", :controller = "user", :action =
column_names is the one you're looking for, it is a class method, so you
should use it like Model.column_names
2011/8/16 7stud -- li...@ruby-forum.com
Jedrin wrote in post #1016808:
If rec is an active record object and you call rec.attribute_names, it
gives you the field names in
+1 for Jim Ruther Hills recommendation.
On Aug 15, 7:09 pm, Genji sushi.ge...@hotmail.de wrote:
Hello there,
I'm still new to ruby on rails, i try to create a little
browsergame. For that, I have to control the resources of a village.
For example:
The village got a wood rate of 200 per
Try use gmaps with this map option: auto_adjust = false
or just with js: pos = new google.maps.LatLng(your_lat, your_lng);
Gmaps4Rails.map.setCenter(pos);
On Aug 15, 10:53 pm, bertly_the_coder much...@gmail.com wrote:
Hi guys,
I'm trying to use longitude and latitude to
On Aug 16, 2011, at 12:29 AM, 7stud -- wrote:
http://jqueryui.com/demos/dialog/#option-autoOpen
Which reminds me -- have you included jQueryUI in your project through
the javascript_include_tag in your views? This is a UI control, which
just won't be there if all you have is the base
On Aug 15, 6:55 pm, Alex Slepak asle...@soletron.com wrote:
Running Ruby 1.8.7, Rails 3.0.7 on a Windows 7 machine - tried going
through an upgrade to Ruby 1.9.2 over the weekend, but ran into
issues, so have since gone back to 1.8.7. After restoring my app and
re-installing all of the gems,
On Tue, Aug 16, 2011 at 9:04 PM, Genji sushi.ge...@hotmail.de wrote:
Thank you for the answers.
Using a scheduler or a external cron service still means to use a
worker, right?
But would the js - way need a worker for that task? (js means java
script or not?)
The problem is just that i
On Aug 15, 6:58 pm, theLemcke sixtimesn...@gmail.com wrote:
You know what? Nevermind. Turns out that table is deleted later in my
migrations, so I'll just comment this line out. Still would like to
know how to do this, if it's even possible.
It looks like the issue is an index established
hi all,
I'm very new to ruby on rails. and i have a problem while trying to run
my first application.
i'm created a rails application and controller called say conains action
called hello and put some html code in
app--view--say--say.rhtml
and when i run 0.0.0.0:3000/say/hello i get this message
On 16 August 2011 16:27, eman a. li...@ruby-forum.com wrote:
hi all,
I'm very new to ruby on rails. and i have a problem while trying to run
my first application.
i'm created a rails application and controller called say conains action
called hello and put some html code in
mbrtowc 0xf91a
/usr/local/lib/libiconv.a(iconv.o)
qsort 0x103d3
/usr/local/lib/libiconv.a(iconv.o)
qsort 0x10423
/usr/local/lib/libiconv.a(iconv.o)
fopen 0xfc
in terms of an invoice i would eg like to display a uniqe number. yes
, i could use auto-inc, which is the internal id, but sometimes u just
need a ssecond one.
so i was wondering how i would generate that during eg a create action.
Unless you are trying to store some meta information in that
On Aug 16, 4:27 pm, eman a. li...@ruby-forum.com wrote:
hi all,
I'm very new to ruby on rails. and i have a problem while trying to run
my first application.
i'm created a rails application and controller called say conains action
called hello and put some html code in
i'm using rails 2.3 on windows
i'm still have the same problem
--
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
On 16 August 2011 17:02, eman eman ahmed li...@ruby-forum.com wrote:
i'm using rails 2.3 on windows
i'm still have the same problem
What problem? You have not quoted any previous message and seem to
have started a new thread.
You have not answered other questions about the log and server
On 16 August 2011 16:34, Frederick Cheung frederick.che...@gmail.com wrote:
On Aug 16, 4:27 pm, eman a. li...@ruby-forum.com wrote:
hi all,
I'm very new to ruby on rails. and i have a problem while trying to run
my first application.
i'm created a rails application and controller called say
Wooow, I completely forgot to include jQueryUI.
Now it works!
Thx a lot :D
--
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
Hello everyone
I have this model
class DetailPurchase ActiveRecord::Base
belongs_to :purchase, :foreign_key = 'purchase_id'
belongs_to :product, :foreign_key = 'product_id'
belongs_to :buy_order_detail, :foreign_key = 'buy_detail_id'
def before_create
Storage.create!(:product_id =
I have two mailer procedures in the same app and same mailer (Rails
3.1/1.9.2). The first one fails with the message below, the second works
fine. Both these results are through irb. Anyone have an idea as to why?
Also, in my application.rb I do have: ActionMailer::Base.default :from =
WaveLineup
What is the output when you try this:
def password_reset_instructions(user)
@user = user
p @user
@url = edit_password_reset_url(user.perishable_token)
mail(:to = user.email, :subject = 'Password Reset for
WaveLineup')
end
--
Posted via http://www.ruby-forum.com/.
--
I'm using the gem 'searchlogic' for a search and I can not
use OR condition in eg the following:
Person.search person = (: birth_date_lte = Time.now.srftime ('% Y-% m-%
d)
: birth_date_null = null)
The SQL generated behind is:
SELECT person .* FROM person WHERE (birth_date IS NULL) AND
On Tue, Aug 16, 2011 at 1:38 PM, 7stud -- li...@ruby-forum.com wrote:
What is the output when you try this:
def password_reset_instructions(user)
@user = user
p @user
@url = edit_password_reset_url(user.perishable_token)
mail(:to = user.email, :subject = 'Password
I'm interested in testing a string field in each record for
several things: the number of times that something occurs in the
string, the number of times that several different things occur in the
string together at the same time, etc., including the record in the
selection if a variety of
On 16 August 2011 17:40, Angelo Cordova acord...@gmail.com wrote:
Hello everyone
I have this model
class DetailPurchase ActiveRecord::Base
belongs_to :purchase, :foreign_key = 'purchase_id'
belongs_to :product, :foreign_key = 'product_id'
belongs_to :buy_order_detail, :foreign_key =
I'm learning to use activerecord (not rails).
Two gems are necessary for this: the activerecord gem and the mysql
adpater (I'm using MySQL). I installed both gems (I think successfully).
When I inspect the directory where all my local gems are installed, I
get this:
The callback is not working. When I call to Storage.create! it
should create a new Storage, but now the storage is never create.
Thanks for your help, I'll try debugging.
On Aug 16, 3:58 pm, Colin Law clan...@googlemail.com wrote:
On 16 August 2011 17:40, Angelo Cordova acord...@gmail.com
On 16 August 2011 21:39, Angelo Cordova acord...@gmail.com wrote:
The callback is not working. When I call to Storage.create! it
should create a new Storage, but now the storage is never create.
Thanks for your help, I'll try debugging.
Debugging will tell you whether the callback is being
you missed definition of that callback
class MyModel ActiveRecord::Base
before_create :do_my_action
def do_my_action
….
end
end
tom
On Aug 16, 2011, at 22:39 , Angelo Cordova wrote:
The callback is not working. When I call to Storage.create! it
should create a new Storage, but
On 16 August 2011 21:50, Tom Meinlschmidt to...@meinlschmidt.com wrote:
you missed definition of that callback
class MyModel ActiveRecord::Base
before_create :do_my_action
That can't be the problem because it used to work and the only change
the OP made was to use jQuery instead of
Hi Guys,
First post on group :). My problem is i couldn't access the test fixtures on
unit test class with using namespaces.
My fixtures at */test/fixtures/kebab/users.yml*
onur:
user_name: onur.ozgur.ozkan
email: onur.ozgur.oz...@lab2023.com
password: 123456
Dear Partners,
Good Morning and hope you are doing well.
Please go through the requirement and send the profile with the best rate.
Title: Ruby on Rails Developer
Location: San Francisco OR Lincolnshire, IL or REMOTE
Duration: 12+ Months(H1B/EAD/GC/Citizens)
Position: 1
Rate: $DOE
Hi,
I'm hoping someone can answer my question. With the Rails 2
link_to_remote tag, I could have two separate links, pointing to the
same controller/action, updating two different destinations(divs).
But now that the javascript has been extracted to a .js.erb file
associated with the
If anyone can help me please do.
Thank you,
Rodrigo
--
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
I am out of the office until 08/25/2011.
Please direct any questions you have to Brian Esler or Andy Brymer in my
absence. Thank You
Note: This is an automated response to your message [Rails] question
regarding link_to vs link_to_remote sent on 8/16/2011 16:55:37.
This is the only
Hi everyone,
Rails 2.3.14 has been released. This release contains critical security fixes.
## CHANGES
You can find an exhaustive list of changes on
[github](https://github.com/rails/rails/compare/v2.1.12...v2.1.14). Here are
some notable excerpts:
### 4 Security Fixes
* [Response
Hi everyone,
Rails 3.0.10 has been released. This release contains critical security fixes.
## CHANGES
You can find an exhaustive list of changes on
[github](https://github.com/rails/rails/compare/v3.0.9...v3.0.10). Here are
some notable excerpts:
### 4 Security Fixes
* [Filter
Hi everyone,
Rails 3.1.0.rc6 has been released. This release contains critical security
fixes.
## CHANGES
You can find an exhaustive list of changes on
[github](https://github.com/rails/rails/compare/v3.1.0.rc5...v3.1.0.rc6).
Along with the [closed issues marked for
hi all,
I'm very new to ruby on rails. and i have a problem while trying to run
my first application.
i'm created a rails application and controller called say conains action
called hello and put some html code in
app--view--say--say.rhtml
and when i run 0.0.0.0:3000/say/hello i get this message
On Aug 16, 2011, at 6:14 PM, eman eman ahmed wrote:
I'm very new to ruby on rails. and i have a problem while trying to run
my first application.
i'm created a rails application and controller called say conains action
called hello and put some html code in
app--view--say--say.rhtml
and
I'm looking to officially hand off a few ruby projects to hackers capable of
being more diligent about updates and responding to users than I. :-(
Source code for all these is on GitHub, though not all are public. I wish I
had time for all these, but the users deserve better than I'm able to
73 matches
Mail list logo