Oracle is the best option for what you want. If you can afford it (because
it is a bit expensive) you should go for Oracle but if you want a free
solution then I would recommend MySQL.
On Thursday, September 13, 2012 11:08:11 AM UTC+5, keerthi priya wrote:
>
> Hi all i am trying analyze which Da
Rails 3.1.3
latest formtastic
My app requires dynamic select forms, so I have models
class Departure < ActiveRecord::Base
has_many :airlines
has_many :destinations, :through => :airlines
end
class Destination < ActiveRecord::Base
has_many :airlines
has_many :departures, :throught => air
Hi all i am trying analyze which DataBase is good for ROR if the
application is huge. After goggling i found the following DB used in ROR
1) MONGO DB
2) MYSQL
3) POSTGRESQL
4) SQLITE
5) ORACLE
apart from above list any other DB are used for ROR and my Questions is
from the above which DB is mor
I am trying to upload the pdf using file io operations, i can select the
file but when i click on the upload button it is not uploading the file
here is my model
class DataFile < ActiveRecord::Base
def self.Save(upload)
name = upload['datafile'].original_filename
directory = "publi
On Wednesday, September 12, 2012 5:14:07 PM UTC+5:30, honey ruby wrote:
>
> Hi all i am learning Rails3.2.7 but by ActiveRecords Validations are not
> working.
>
> These are my User.rb
>
> class User < ActiveRecord::Base
> attr_accessible :password, :fullname,:user_name
> ,:email,:compan
Hello,
On Wednesday, September 12, 2012 5:14:07 PM UTC+5:30, honey ruby wrote:
>
> Hi all i am learning Rails3.2.7 but by ActiveRecords Validations are not
> working.
>
> These are my User.rb
>
> class User < ActiveRecord::Base
> attr_accessible :password, :fullname,:user_name
> ,:email,:
Sorry I was talking out of my arse in the last post. Correct version:
I have done various testing using MRI and JRuby with config.threadsafe!
and it appears to work in all the tests I have thrown at it, but that
gives me 99% certainty (I could have missed soemthing).
I tried tracing through
I have done various testing using MRI and JRuby with config.threadsafe!
enabled and I THINK that it does always execute in the same thread.
However since the log files are interleaved when dealing with many
requests and logs written from the subscriber do not have access to the
request object
<%= form_for @instruction_user,
<%= f.text_field :remark_tl%>
Have you tried:
params[:instruction_user][:remark_tl]?
--
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 pos
Steven H. wrote in post #1075682:
> I had a similar problem, where I found the presented solutions to
> handling external templates for jsRender to be lacking. I created a js
> library to help facilitate adding external files to an html page. Note
> that this library will work with any templating e
I had a similar problem, where I found the presented solutions to
handling external templates for jsRender to be lacking. I created a js
library to help facilitate adding external files to an html page. Note
that this library will work with any templating engine, not just
jsRender. I would like you
On Wed, Sep 12, 2012 at 3:03 AM, Avi wrote:
>$("#user_registration").show();
>// Default I am setting to this on coming to this page. How can I change
> this ?
1) set the value on the server on select and get it back on page reload
2) save it to a cookie
3) save it to HTML5 Local Storag
On Wed, Sep 12, 2012 at 2:22 AM, yaswanth k wrote:
> Problem:-
> Now In My Database each Listener is holding more than 2lakhs of records.
> When I am trying to delete Listener I am getting ana error and Mysql is not
> responding.
What's the error? What's in your Rails and MySQL logs when this
is
Fresher allowed??
--
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
rubyonrails-talk+unsubscr...@googlegroups.com.
To vie
form:
<%= form_for @instruction_user, :url => new_fb_instruction_users_path do |f| %>
<% @users.each do |user| %>
<%= user.name %>
<%= fields_for "instruction[]" do %>
<%= f.text_field :remark_tl%>
<% end %>
<%= check_box_tag
On 12 September 2012 12:44, honey ruby wrote:
> Hi all i am learning Rails3.2.7 but by ActiveRecords Validations are not
> working.
>
> These are my User.rb
>
> class User < ActiveRecord::Base
> attr_accessible :password, :fullname,:user_name
> ,:email,:company_name#,:terms_of_service,:passw
If you are talking about the console of MySQL query then you can write as
below.
SELECT id FROM Info WHERE name = 'fahim'
Else if you are talking about the ActiveRecord Query in rails then write it
like this.
Info.select("id").where(:name => "fahim")
This query would return you the ActiveRel
On Wednesday, September 12, 2012 2:11:41 AM UTC+1, Jeffrey Jones wrote:
>
> Hello all.
>
> I am planning on using ActiveSupport::Notifications and have a question
> about threading. For the purposes of this question I am assuming
> config.threadsafe! is enabled.
>
> Will a subscriber execute i
OK, what I meant is that maybe you were expecting error to get displayed
without actually putting the code (most likely in a layout template), i.e.
(the example is in HAML)
= render partial 'layouts/errors'
and layouts/_errors could look something like
%div#errors= flash[:error]
But if it is (i
i wish to select id from table where name = 'fahim'
Table name is Info and columns are id and name
how to write a query in console
--
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@
Hello all.
I am planning on using ActiveSupport::Notifications and have a question
about threading. For the purposes of this question I am assuming
config.threadsafe! is enabled.
Will a subscriber execute in the same thread as the code that caused it to
be triggered or do they run in separate
@Gintautas Šimkus when i enter data my data is saving. What do u mean by
infrastructure in place to display the errors.
On Wed, Sep 12, 2012 at 5:18 PM, Gintautas Šimkus wrote:
> Is the record being saved? If not, then most likely you just do not have
> infrastructure in place to display the erro
Is the record being saved? If not, then most likely you just do not have
infrastructure in place to display the errors.
2012/9/12 honey ruby
> Hi all i am learning Rails3.2.7 but by ActiveRecords Validations are not
> working.
>
> These are my User.rb
>
> class User < ActiveRecord::Base
>
Hi all i am learning Rails3.2.7 but by ActiveRecords Validations are not
working.
These are my User.rb
class User < ActiveRecord::Base
attr_accessible :password, :fullname,:user_name
,:email,:company_name#,:terms_of_service,:password_confirmation
validates :terms_of_service, :acce
I got it what i need thanks all.
On Wed, Sep 12, 2012 at 3:16 PM, Jim Ruther Nill wrote:
>
>
> On Wed, Sep 12, 2012 at 7:40 PM, keerthi priya <
> emailtokeerthipr...@gmail.com> wrote:
>
>> This is my console code
>>
>> irb(main):001:0> (2.08*100).round / 100.0
>> => 2.08
>>
>> but i what i was
Here is my code :-
$(document).ready(function () {
$('#table_user_registration').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
$('#table_download_file').dataTable({
"bJQueryUI": true,
"sPagination
This might be help full
http://stackoverflow.com/questions/884512/how-to-cap-and-round-number-in-ruby
On Wed, Sep 12, 2012 at 3:16 PM, Jim Ruther Nill wrote:
>
>
> On Wed, Sep 12, 2012 at 7:40 PM, keerthi priya <
> emailtokeerthipr...@gmail.com> wrote:
>
>> This is my console code
>>
>> irb(ma
On Wed, Sep 12, 2012 at 7:40 PM, keerthi priya <
emailtokeerthipr...@gmail.com> wrote:
> This is my console code
>
> irb(main):001:0> (2.08*100).round / 100.0
> => 2.08
>
> but i what i was expecting is like if i give input as 2.08 i need my
> output as 2.1 and i give i/p as 2.04 i need my output
This is my console code
irb(main):001:0> (2.08*100).round / 100.0
=> 2.08
but i what i was expecting is like if i give input as 2.08 i need my output
as 2.1 and i give i/p as 2.04 i need my output as 2.0
On Wed, Sep 12, 2012 at 3:02 PM, Jim Ruther Nill wrote:
>
>
> On Wed, Sep 12, 2012 at 4:
On Wed, Sep 12, 2012 at 4:25 PM, keerthi priya <
emailtokeerthipr...@gmail.com> wrote:
> Hi all
> i am trying to use round method if have a value 2.08 i want it as 2.1 and
> it worked in 1.9.2 but not in 1.8.7 is there any other way of doing it.
>
>
> USING 1.9.2
>
> 1.9.2p320 :001 > 2.08.round(1)
On 12 September 2012 10:25, keerthi priya wrote:
> @Vijay it did not work
It is no good saying "it did not work". Show us what you did and what
the result was and what you expected. Copy/paste it from the console
so we can see exactly what happened.
Colin
>
> On Wed, Sep 12, 2012 at 12:21 PM,
On 12 September 2012 10:15, Avi wrote:
> Hello,
>
> I have a page. In that I am showing dropdown list. According to the values I
> am viewing the tables.
> When I am selecting values from the dropdown, it renders a table & views it.
> Everything is happening on client side. When I refresh the page
@Vijay it did not work
On Wed, Sep 12, 2012 at 12:21 PM, vijaya sekhar reddy mallidi <
m.vijaysek...@gmail.com> wrote:
> Hi Keerthi,
>
> Following is useful for you
>
>(2.3465*100).round / 100.0
>
> Note: Don't forget .0 for 100
>
> Thanks & Regards,
>Vijay
>
> On Wed, Sep 12, 2012 at
Dear all,
I am using *async_observer plug-in*.
*Scenario :-*
I am having two models Listener and Webhits, in which *Listener* has_many *
webhits* is the association.
When I am deleting Listener It should delete all the webhits corresponding
to that Listener.
When the data is less every thing is f
Hello,
I have a page. In that I am showing dropdown list. According to the values
I am viewing the tables.
When I am selecting values from the dropdown, it renders a table & views it.
Everything is happening on client side. When I refresh the page, it goes to
the fist value in the dropdown (rath
On 12 September 2012 09:53, Colin Law wrote:
> On 12 September 2012 08:57, Fahim Patel wrote:
>> hi all,
>>
>> has_and_belongs_to_many :cows
>> has_and_belongs_to_many :milkmans
>>
>> i am using has_and_belongs_to_many in my app.I know this will create third
>> table internally cows_milkman
On 12 September 2012 08:57, Fahim Patel wrote:
> hi all,
>
> has_and_belongs_to_many :cows
> has_and_belongs_to_many :milkmans
>
> i am using has_and_belongs_to_many in my app.I know this will create third
> table internally cows_milkmans in mysql database.
>
> when i migrate develpoment dat
hi all,
has_and_belongs_to_many :cows
has_and_belongs_to_many :milkmans
i am using has_and_belongs_to_many in my app.I know this will create
third table internally cows_milkmans in mysql database.
when i migrate develpoment database i have table cows_milkmans. Good no
Problem till now.
38 matches
Mail list logo